Skip to content

Commit 72b1d8a

Browse files
committed
Debugged normal field of DistributedAlgoim
1 parent 96486b5 commit 72b1d8a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/AlgoimUtils/AlgoimUtils.jl

+4-2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ using GridapDistributed: DistributedCellField
3232
using GridapDistributed: DistributedFESpace
3333
using GridapDistributed: DistributedSingleFieldFEFunction
3434
using GridapDistributed: DistributedVisualizationData
35+
using GridapDistributed: add_ghost_cells
3536
import GridapDistributed: local_views
3637

3738
using GridapEmbedded.Interfaces
@@ -118,7 +119,8 @@ function normal(phi::AlgoimCallLevelSetFunction,trian::DistributedTriangulation)
118119
DistributedCellField(normals,trian)
119120
end
120121

121-
function normal(phi::DistributedAlgoimCallLevelSetFunction,trian::DistributedTriangulation)
122+
function normal(phi::DistributedAlgoimCallLevelSetFunction,_trian::DistributedTriangulation)
123+
trian = add_ghost_cells(_trian)
122124
normals = map((φ,t)->normal(φ,t),local_views(phi),local_views(trian))
123125
DistributedCellField(normals,trian)
124126
end
@@ -875,7 +877,7 @@ function compute_distance_fe_function(
875877
cos = node_to_dof_order(cos,fs,bg,order)
876878
_compute_signed_distance(φl,cp,cos)
877879
end
878-
dists = PVector(_dists,partition(fespace.gids))
880+
dists = PVector(_dists,partition(fespace.gids))
879881
FEFunction(fespace,dists)
880882
end
881883

0 commit comments

Comments
 (0)