Skip to content

Commit

Permalink
Using GridapPETSc.with(...) in PLaplacianTests
Browse files Browse the repository at this point in the history
  • Loading branch information
amartinhuertas committed Oct 30, 2021
1 parent 7f0c7a6 commit 725c842
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/PLaplacianTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ using Test

function main(parts)
options = "-snes_type newtonls -snes_linesearch_type basic -snes_linesearch_damping 1.0 -snes_rtol 1.0e-14 -snes_atol 0.0 -snes_monitor -pc_type jacobi -ksp_type gmres -ksp_monitor -snes_converged_reason"
GridapPETSc.Init(args=split(options))

main(parts,FullyAssembledRows())
main(parts,SubAssembledRows())

GridapPETSc.Finalize()
GridapPETSc.with(args=split(options)) do
main(parts,FullyAssembledRows())
main(parts,SubAssembledRows())
end
end

function main(parts,strategy)
Expand Down
1 change: 1 addition & 0 deletions test/mpi/PLaplacianTests.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include("../PLaplacianTests.jl")
nparts = (2,2)
prun(main,mpi,nparts)
prun(main,mpi,nparts)

0 comments on commit 725c842

Please sign in to comment.