From 293dccdded7cc50062051bb0b91619a5ea5c1321 Mon Sep 17 00:00:00 2001 From: JordiManyer Date: Mon, 14 Oct 2024 10:54:17 +1100 Subject: [PATCH] Minor bugfix --- src/Adaptivity.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Adaptivity.jl b/src/Adaptivity.jl index b41fb4b..8f774d1 100644 --- a/src/Adaptivity.jl +++ b/src/Adaptivity.jl @@ -996,7 +996,9 @@ function refine_local_models( # Filter out local models filtered_fmodels = map(fmodels,f_own_or_ghost_ids) do fmodel,f_own_or_ghost_ids - model = DiscreteModelPortion(get_model(fmodel),f_own_or_ghost_ids).model + model = UnstructuredDiscreteModel( # Necessary to keep the same type + DiscreteModelPortion(get_model(fmodel),f_own_or_ghost_ids) + ) parent = get_parent(fmodel) _glue = get_adaptivity_glue(fmodel)