Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Oct 14, 2024
1 parent a5dc830 commit 524b406
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Meshers/p4est.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,8 @@ function generate_refined_mesh(
for i in 1:num_refs
model = refine(model)
end
return Gridap.Adaptivity.get_model(model)
if num_refs > 0
model = Gridap.Adaptivity.get_model(model)
end
return model
end

0 comments on commit 524b406

Please sign in to comment.