Skip to content

Commit

Permalink
Minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Nov 13, 2024
1 parent 24c1eeb commit f28b651
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Adaptivity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,7 @@ end
function redistribute(model::DistributedAdaptedDiscreteModel,args...;kwargs...)
# Local cmodels are AdaptedDiscreteModels. To correctly dispatch, we need to
# extract the underlying models, then redistribute.
_model = GenericDistributedDiscreteModel(
map(get_model,local_views(model)),
get_cell_gids(model);
metadata=model.metadata
)
_model = get_model(model)
return redistribute(_model,args...;kwargs...)
end

Expand Down

0 comments on commit f28b651

Please sign in to comment.