Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Jul 8, 2024
1 parent b39f288 commit aaa971a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Adaptivity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ function DistributedAdaptedDiscreteModel(
AdaptedDiscreteModel(model,parent,glue)
end
gids = get_cell_gids(model)
metadata = model.metadata
metadata = hasproperty(model,:metadata) ? model.metadata : nothing

Check warning on line 15 in src/Adaptivity.jl

View check run for this annotation

Codecov / codecov/patch

src/Adaptivity.jl#L15

Added line #L15 was not covered by tests
return GenericDistributedDiscreteModel(models,gids;metadata)
end

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

Expand Down

0 comments on commit aaa971a

Please sign in to comment.