Testing BC for cell-centered system

- inhomogenous neumann BC
- Mixed BC

were tested

Fixing bug in the function "projNeumannIn"
This commit is contained in:
seogi
2014-02-19 14:25:55 -08:00
parent 3846dc4bce
commit 9c8b64b9f1
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -499,7 +499,7 @@ class DiffOperators(object):
P = sp.identity(n+1).tocsr()
if(bc[0] == 'neumann'):
P = P[1:,:]
if(bc[0] == 'neumann'):
if(bc[1] == 'neumann'):
P = P[:-1,:]
return P
-1
View File
@@ -171,6 +171,5 @@ class Test2D_InhomogeneousDirichlet(OrderTest):
if __name__ == '__main__':
unittest.main()