From 8c361091f9b4d15115821528095cd73a4db61def Mon Sep 17 00:00:00 2001 From: "Alberto F. Martin" Date: Fri, 4 Aug 2023 09:41:27 +1000 Subject: [PATCH] Fixes to NonConformingOctreeDistributedDiscreteModelsTests.jl --- test/NonConformingOctreeDistributedDiscreteModelsTests.jl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/NonConformingOctreeDistributedDiscreteModelsTests.jl b/test/NonConformingOctreeDistributedDiscreteModelsTests.jl index 1763f36..d66060a 100644 --- a/test/NonConformingOctreeDistributedDiscreteModelsTests.jl +++ b/test/NonConformingOctreeDistributedDiscreteModelsTests.jl @@ -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) @@ -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