9 #if defined(__WITH_PETSC__)
23 character(len=*) :: solver_mode
24 character(len=*) :: sln_name
29 if (solver_mode ==
'IMS')
then
32 #if defined(__WITH_PETSC__)
33 else if (solver_mode ==
'PETSC')
then
37 call ustop(
'Unsupported solver mode: '//trim(solver_mode))
class(linearsolverbasetype) function, pointer, public create_ims_solver(sln_name)
class(linearsolverbasetype) function, pointer, public create_linear_solver(solver_mode, sln_name)
Factory method to create the linear solver object.
class(linearsolverbasetype) function, pointer, public create_petsc_solver(sln_name)
Create a PETSc solver object.
This module contains simulation methods.
subroutine, public ustop(stopmess, ioutlocal)
Stop the simulation.
Abstract type for linear solver.