Skip to content

Commit

Permalink
Fixes to NonConformingOctreeDistributedDiscreteModelsTests.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
amartinhuertas committed Aug 3, 2023
1 parent 1e8c0e1 commit 8c36109
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/NonConformingOctreeDistributedDiscreteModelsTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,14 @@ module NonConformingOctreeDistributedDiscreteModelsTests
end

MPI.Init()
parts = distribute_with_mpi(LinearIndices((MPI.Comm_size(MPI.COMM_WORLD),)))
ranks = distribute_with_mpi(LinearIndices((MPI.Comm_size(MPI.COMM_WORLD),)))

function test(TVDc::Type{Val{Dc}}, perm, order) where Dc
# This is for debuging
coarse_model = setup_model(TVDc,perm)
model = OctreeDistributedDiscreteModel(parts, coarse_model, 0)
model = OctreeDistributedDiscreteModel(ranks, coarse_model, 0)

ref_coarse_flags=map(parts) do _
ref_coarse_flags=map(ranks) do _
[refine_flag,nothing_flag]
end
dmodel,adaptivity_glue=refine(model,ref_coarse_flags)
Expand Down Expand Up @@ -213,8 +213,6 @@ module NonConformingOctreeDistributedDiscreteModelsTests
test_solve(dmodel,order)
end

end

for Dc=2:3, perm=1:4, order=1:3
test(Val{Dc},perm,order)
end
Expand Down

0 comments on commit 8c36109

Please sign in to comment.