From 1ae953599d1607e59d5b1b1d3960746286e2cddc Mon Sep 17 00:00:00 2001 From: acse-ej321 <89605848+acse-ej321@users.noreply.github.com> Date: Thu, 24 Oct 2024 13:55:05 +0100 Subject: [PATCH] #220 minor formating changes --- goalie/go_mesh_seq.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/goalie/go_mesh_seq.py b/goalie/go_mesh_seq.py index c3c479a..3982967 100644 --- a/goalie/go_mesh_seq.py +++ b/goalie/go_mesh_seq.py @@ -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()