Skip to content

Commit

Permalink
Merge pull request pmgbergen#53 from pmgbergen/fix_mpfa_bound
Browse files Browse the repository at this point in the history
Bugfix in assignment of eta for mpfa boundary faces.
  • Loading branch information
keileg authored Oct 30, 2017
2 parents f2aa6b0 + 7115d7b commit 466013c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/porepy/numerics/fv/fvutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ def compute_dist_face_cell(g, subcell_topology, eta):
blocksz[0], blocksz)
eta_vec = eta * np.ones(subcell_topology.fno.size)
# Set eta values to zero at the boundary
bnd = np.argwhere(np.abs(g.cell_faces).sum(axis=1).A.squeeze()
== 1).squeeze()
bnd = np.in1d(subcell_topology.fno, g.get_boundary_faces())
eta_vec[bnd] = 0
cp = g.face_centers[:, subcell_topology.fno] \
+ eta_vec * (g.nodes[:, subcell_topology.nno] -
Expand Down

0 comments on commit 466013c

Please sign in to comment.