diff --git a/SimPEG/Mesh/DiffOperators.py b/SimPEG/Mesh/DiffOperators.py index 8ca498d7..70a7e657 100644 --- a/SimPEG/Mesh/DiffOperators.py +++ b/SimPEG/Mesh/DiffOperators.py @@ -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 diff --git a/SimPEG/Tests/test_boundaryPoisson.py b/SimPEG/Tests/test_boundaryPoisson.py index 42a7bc59..a14ab2a9 100644 --- a/SimPEG/Tests/test_boundaryPoisson.py +++ b/SimPEG/Tests/test_boundaryPoisson.py @@ -171,6 +171,5 @@ class Test2D_InhomogeneousDirichlet(OrderTest): - if __name__ == '__main__': unittest.main()