Skip to content

Commit 5c6d68a

Browse files
Added mpi tests
1 parent dd1391f commit 5c6d68a

3 files changed

Lines changed: 23 additions & 17 deletions

File tree

test/mpi/cavity_tests.jl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ using Gridap
77

88
using GridapMHD: cavity
99

10+
11+
function main(parts)
12+
13+
np = (parts...,1)
14+
1015
# PETSc - SNES + MUMPS
11-
# cavity(np=4,nc=(4,4,4),backend=:mpi,solver=:petsc)
16+
cavity(np=np,nc=(4,4,4),backend=:mpi,solver=:petsc)
1217

1318
# Cavity - H1H1 - Block solver + MUMPS
1419
# np = (2,2,1)
@@ -50,8 +55,7 @@ using GridapMHD: cavity
5055
# )
5156

5257
# Cavity - HDivH1 - Block solver + GMG
53-
54-
np = (1,1,1)
58+
# np = (2,2,1)
5559
cavity(
5660
nc = (8,8,8),
5761
np = np,
@@ -114,4 +118,6 @@ cavity(
114118
# solid = true
115119
# )
116120

121+
end
122+
117123
end # module

test/mpi/hunt_tests.jl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ function main(parts)
1919
title="hunt",
2020
)
2121

22-
# # Default monolithic solver w petsc
23-
# hunt(
24-
# nc=(4,4),
25-
# np=parts,
26-
# backend=:mpi,
27-
# L=1.0,
28-
# B=(0.,50.,0.),
29-
# debug=false,
30-
# vtk=true,
31-
# title="hunt",
32-
# solver=:petsc,
33-
# )
22+
# Default monolithic solver w petsc
23+
hunt(
24+
nc=(4,4),
25+
np=parts,
26+
backend=:mpi,
27+
L=1.0,
28+
B=(0.,50.,0.),
29+
debug=false,
30+
vtk=true,
31+
title="hunt",
32+
solver=:petsc,
33+
)
3434

3535
end
3636

test/mpi/runtests_body.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ end
1414
include("hunt_tests.jl")
1515
HuntTestsMPI.main(parts)
1616

17-
# include("hunt_li2019_tests.jl")
18-
# HuntLi2019TestsMPI.main(parts)
17+
include("cavity_tests.jl")
18+
CavityTestsMPI.main(parts)

0 commit comments

Comments
 (0)