Skip to content

Commit

Permalink
Debugged normal field of DistributedAlgoim
Browse files Browse the repository at this point in the history
  • Loading branch information
ericneiva committed Oct 8, 2024
1 parent 96486b5 commit 72b1d8a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/AlgoimUtils/AlgoimUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ using GridapDistributed: DistributedCellField
using GridapDistributed: DistributedFESpace
using GridapDistributed: DistributedSingleFieldFEFunction
using GridapDistributed: DistributedVisualizationData
using GridapDistributed: add_ghost_cells
import GridapDistributed: local_views

using GridapEmbedded.Interfaces
Expand Down Expand Up @@ -118,7 +119,8 @@ function normal(phi::AlgoimCallLevelSetFunction,trian::DistributedTriangulation)
DistributedCellField(normals,trian)
end

function normal(phi::DistributedAlgoimCallLevelSetFunction,trian::DistributedTriangulation)
function normal(phi::DistributedAlgoimCallLevelSetFunction,_trian::DistributedTriangulation)
trian = add_ghost_cells(_trian)
normals = map((φ,t)->normal(φ,t),local_views(phi),local_views(trian))
DistributedCellField(normals,trian)
end
Expand Down Expand Up @@ -875,7 +877,7 @@ function compute_distance_fe_function(
cos = node_to_dof_order(cos,fs,bg,order)
_compute_signed_distance(φl,cp,cos)
end
dists = PVector(_dists,partition(fespace.gids))
dists = PVector(_dists,partition(fespace.gids))
FEFunction(fespace,dists)
end

Expand Down

0 comments on commit 72b1d8a

Please sign in to comment.