Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Oct 9, 2024
1 parent d9e3e72 commit 0f38073
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Meshers/p4est.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function generate_refined_mesh(
model = GridapP4est.with(ranks) do
OctreeDistributedDiscreteModel(ranks,base_model,num_refs)
end
return model
return model.dmodel
end

"""
Expand Down
24 changes: 22 additions & 2 deletions test/mpi/expansion_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,29 @@ module ExpansionTestsMPI

using GridapPETSc
using SparseMatricesCSR

using GridapMHD: expansion

expansion(np=4,backend=:mpi,savelines=true)
#expansion(np=4,backend=:mpi,savelines=true)

mesh = Dict{Symbol,Any}(
:mesher => :p4est_SG,
:base_mesh => "meshes/Expansion_710.msh",
:num_refs => 1,
)
solver = Dict{Symbol,Any}(
:solver => :badia2024,
:matrix_type => SparseMatrixCSR{0,PetscScalar,PetscInt},
:vector_type => Vector{PetscScalar},
:block_solvers => [:petsc_mumps,:cg_jacobi,:cg_jacobi],
:petsc_options => "-ksp_error_if_not_converged true -ksp_converged_reason",
)
expansion(
np=4,
backend=:mpi,
mesh=mesh,
solver=solver,
ζ = 10.0,
savelines=true
)

end

0 comments on commit 0f38073

Please sign in to comment.