Skip to content

Commit

Permalink
Small bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Aug 3, 2023
1 parent c7a5edd commit 39e0175
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Adaptivity/AdaptedTriangulations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ function change_domain_o2n(f_coarse,ctrian::Triangulation{Dc},ftrian::AdaptedTri

return CellData.similar_cell_field(f_coarse,f_fine,ftrian,ReferenceDomain())
else
f_fine = Fill(Gridap.Fields.ConstantField(0.0),num_cells(ftrian))
f_fine = Fill(Fields.ConstantField(0.0),num_cells(ftrian))
return CellData.similar_cell_field(f_coarse,f_fine,ftrian,ReferenceDomain())
end
end
Expand All @@ -312,7 +312,7 @@ function change_domain_o2n(
field_array = lazy_map(OldToNewField, f_c2f, new_rrules, glue.n2o_cell_to_child_id)
return CellData.similar_cell_field(f_old,field_array,new_trian,ReferenceDomain())
else
f_new = Fill(Gridap.Fields.ConstantField(0.0),num_cells(new_trian))
f_new = Fill(Fields.ConstantField(0.0),num_cells(new_trian))
return CellData.similar_cell_field(f_old,f_new,new_trian,ReferenceDomain())
end
end
Expand Down Expand Up @@ -351,7 +351,7 @@ function change_domain_n2o(f_fine,ftrian::AdaptedTriangulation{Dc},ctrian::Trian

return CellData.similar_cell_field(f_fine,f_coarse,ctrian,ReferenceDomain())
else
f_coarse = Fill(Gridap.Fields.ConstantField(0.0),num_cells(fcoarse))
f_coarse = Fill(Fields.ConstantField(0.0),num_cells(fcoarse))
return CellData.similar_cell_field(f_fine,f_coarse,ctrian,ReferenceDomain())
end
end
Expand Down

0 comments on commit 39e0175

Please sign in to comment.