Skip to content

Commit

Permalink
#220 minor formating changes
Browse files Browse the repository at this point in the history
  • Loading branch information
acse-ej321 committed Oct 24, 2024
1 parent 7a1bb67 commit 1ae9535
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions goalie/go_mesh_seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,17 @@ def indicate_errors(
indi.interpolate(abs(indi))
self.indicators[f][i][j].interpolate(ufl.max_value(indi, 1.0e-16))

# discard extra subinterval solution field
self.solutions[f][FWD_OLD].pop()
self.solutions[f][ADJ_NEXT].pop() # ej321
enriched_mesh_seq.solutions[f][FWD_OLD].pop()
enriched_mesh_seq.solutions[f][ADJ_NEXT].pop()

# delete extra mesh to reduce the memory footprint
enriched_mesh_seq.meshes.pop()
enriched_mesh_seq.time_partition.num_subintervals -= 1
enriched_mesh_seq.time_partition.timesteps.pop()

return self.solutions, self.indicators

@PETSc.Log.EventDecorator()
Expand Down

0 comments on commit 1ae9535

Please sign in to comment.