Skip to content

Commit e4f8afb

Browse files
committed
[BUGFIX] Set element ids before computing volume
1 parent d32f207 commit e4f8afb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

diffmpm/solver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def __init__(self, mesh, dt, scheme="usf", velocity_update=False):
4242
self.mesh = mesh
4343
self.dt = dt
4444
self.scheme = scheme
45+
self.mesh.apply_on_elements("set_particle_element_ids")
4546
self.mesh.apply_on_particles("compute_volume")
4647

4748
def tree_flatten(self):

0 commit comments

Comments
 (0)