diff --git a/goalie/go_mesh_seq.py b/goalie/go_mesh_seq.py index 3982967..529dbac 100644 --- a/goalie/go_mesh_seq.py +++ b/goalie/go_mesh_seq.py @@ -3,6 +3,7 @@ """ from collections.abc import Iterable +from copy import deepcopy import numpy as np import ufl @@ -61,9 +62,12 @@ def get_enriched_mesh_seq(self, enrichment_method="p", num_enrichments=1): else: meshes = self.meshes + # Create copy of time_partition + time_partition = deepcopy(self.time_partition) + # Construct object to hold enriched spaces enriched_mesh_seq = type(self)( - self.time_partition, + time_partition, meshes, get_function_spaces=self._get_function_spaces, get_initial_condition=self._get_initial_condition,