mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-09 01:51:58 +08:00
Testing BC for cell-centered system
- inhomogenous neumann BC - Mixed BC were tested Fixing bug in the function "projNeumannIn"
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -171,6 +171,5 @@ class Test2D_InhomogeneousDirichlet(OrderTest):
|
||||
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user