Skip to content

Commit

Permalink
mumps not run w artifacts in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagobadia committed Jul 11, 2024
1 parent e231d30 commit 43c0b2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions test/DarcyTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ using PartitionedArrays
function main(distribute,nparts)
parts = distribute(LinearIndices((prod(nparts),)))

if PETSC.MatMumpsSetIcntl_handle[] == C_NULL
@info "Skipping DarcyTests since petsc is not configured with mumps."
if GridapPETSc.libpetsc_provider == "PETSc_jll"
@info "Skipping DarcyTests since mumps seems not to work with artifacts."
return nothing
end

Expand Down Expand Up @@ -59,4 +59,3 @@ function main(distribute,nparts)
uh, ph = xh

end

2 changes: 1 addition & 1 deletion test/PLaplacianTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function mysnessetup(snes)
@check_error_code GridapPETSc.PETSC.PCFactorGetMatrix(pc[],mumpsmat)
@check_error_code GridapPETSc.PETSC.MatMumpsSetIcntl(mumpsmat[], 4, 2)
@check_error_code GridapPETSc.PETSC.MatMumpsSetIcntl(mumpsmat[], 28, 2)
@check_error_code GridapPETSc.PETSC.MatMumpsSetIcntl(mumpsmat[], 29, 1)
@check_error_code GridapPETSc.PETSC.MatMumpsSetIcntl(mumpsmat[], 29, 2)
@check_error_code GridapPETSc.PETSC.MatMumpsSetCntl(mumpsmat[], 3, 1.0e-6)
end

Expand Down
4 changes: 2 additions & 2 deletions test/sequential/DarcyDriver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ options = "-ksp_converged_reason -ksp_monitor -ksp_type preonly -pc_type lu -pc_

out = GridapPETSc.with(args=split(options)) do

if PETSC.MatMumpsSetIcntl_handle[] == C_NULL
@info "Skipping DarcyDriver since petsc is not configured with mumps."
if GridapPETSc.libpetsc_provider == "PETSc_jll"
@info "Skipping DarcyDriver since mumps seems not to work with artifacts."
return nothing
end

Expand Down

0 comments on commit 43c0b2a

Please sign in to comment.