From aaa971a1ec71170e55a50b60bebc0f487f6c0cde Mon Sep 17 00:00:00 2001 From: JordiManyer Date: Mon, 8 Jul 2024 11:32:33 +1000 Subject: [PATCH] Minor --- src/Adaptivity.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Adaptivity.jl b/src/Adaptivity.jl index 81574cc..1029bad 100644 --- a/src/Adaptivity.jl +++ b/src/Adaptivity.jl @@ -12,7 +12,7 @@ function DistributedAdaptedDiscreteModel( AdaptedDiscreteModel(model,parent,glue) end gids = get_cell_gids(model) - metadata = model.metadata + metadata = hasproperty(model,:metadata) ? model.metadata : nothing return GenericDistributedDiscreteModel(models,gids;metadata) end @@ -20,7 +20,7 @@ function Adaptivity.get_model(model::DistributedAdaptedDiscreteModel) GenericDistributedDiscreteModel( map(get_model,local_views(model)), get_cell_gids(model); - metadata=model.metadata + metadata = hasproperty(model,:metadata) ? model.metadata : nothing ) end