Skip to content

Commit

Permalink
local distributed simplexify [temporary]
Browse files Browse the repository at this point in the history
  • Loading branch information
pmartorell committed Jul 25, 2024
1 parent 0ce2164 commit 3adabe3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Distributed.jl
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ end

# PR @ GridapDistributed.jl

function Gridap.ReferenceFEs.simplexify(model::DistributedDiscreteModel{D};kwargs...) where D
function _simplexify(model::DistributedDiscreteModel{D};kwargs...) where D
models = map(local_views(model)) do m
Gridap.ReferenceFEs.simplexify(m;kwargs...)
end
Expand Down
2 changes: 1 addition & 1 deletion test/DistributedTests/CutterTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function main(distribute;
pmax = pmax + diagonal*δ
bgmodel = CartesianDiscreteModel(ranks,np,pmin,pmax,nc)
if simplex
bgmodel = simplexify(bgmodel,positive=true)
bgmodel = STLCutters._simplexify(bgmodel,positive=true)
end

cutter = STLCutter(;tolfactor,timers)
Expand Down
2 changes: 1 addition & 1 deletion test/DistributedTests/Poisson.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function main(distribute;
pmax = pmax + diagonal*δ
bgmodel = CartesianDiscreteModel(ranks,np,pmin,pmax,nc)
if simplex
bgmodel = simplexify(bgmodel,positive=true)
bgmodel = STLCutters._simplexify(bgmodel,positive=true)
end

cutter = STLCutter(;tolfactor)
Expand Down

0 comments on commit 3adabe3

Please sign in to comment.