Skip to content

Commit

Permalink
Fixes issue #26
Browse files Browse the repository at this point in the history
  • Loading branch information
Runar committed Jun 21, 2017
1 parent 2cc383b commit 515f2e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/porepy/fracs/structured.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def cart_grid_2d(fracs, nx, physdims=None):

# Create 0-D grids
if np.any(shared_nodes > 1):
for global_node in np.where(shared_nodes > 1):
for global_node in np.argwhere(shared_nodes > 1).ravel():
g = point_grid.PointGrid(g_2d.nodes[:, global_node])
g.global_point_ind = np.asarray(global_node)
g_0d.append(g)
Expand Down
2 changes: 1 addition & 1 deletion test/integration/test_structured.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_x_intersection_2d(self):
f_nodes_0 = [5]
glob_1 = np.sort(g_1d_1.global_point_ind)
glob_2 = np.sort(g_1d_2.global_point_ind)
glob_0 = np.sort(g_0d.global_point_ind)
glob_0 = np.sort(np.atleast_1d(g_0d.global_point_ind))
assert np.all(f_nodes_1 == glob_1)
assert np.all(f_nodes_2 == glob_2)
assert np.all(f_nodes_0 == glob_0)
Expand Down

0 comments on commit 515f2e9

Please sign in to comment.