Unverified Commit 88d3370c authored by Salko Jr, Robert's avatar Salko Jr, Robert Committed by GitHub
Browse files

Fix for PETSc 3.12.4 (#304)

For this newer version of PETSc, a parallel run using SuperLU_dist needs to
specifically call that solver (not SuperLU, which only works for serial).  Older
versions of PETSc allowed the solver to be set to SuperLU whether it was serial
or parallel.

CASL Ticket # - 4661
parent 8d9b1b01
......@@ -546,7 +546,14 @@ SUBROUTINE init_LinearSolverType_Base(solver,Params,A)
!PC calls
CALL KSPGetPC(solver%ksp,pc,ierr)
CALL PCSetType(pc,PCLU,iperr)
IF (solver%MPIparallelEnv%nproc>1) THEN
CALL PCFactorSetMatSolverType(pc,MATSOLVERSUPERLU,iperr)
CALL PCFactorSetUpMatSolverType(pc,iperr)
CALL PCFactorSetMatSolverType(pc,MATSOLVERSUPERLU,iperr)
CALL PCFactorSetUpMatSolverType(pc,iperr)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment