MODFLOW 6  version 6.6.0.dev0
USGS Modular Hydrologic Model
linearsolverfactory Module Reference

Functions/Subroutines

class(linearsolverbasetype) function, pointer, public create_linear_solver (solver_mode, sln_name)
 Factory method to create the linear solver object. More...
 

Function/Subroutine Documentation

◆ create_linear_solver()

class(linearsolverbasetype) function, pointer, public linearsolverfactory::create_linear_solver ( character(len=*)  solver_mode,
character(len=*)  sln_name 
)

Definition at line 22 of file LinearSolverFactory.F90.

23  character(len=*) :: solver_mode
24  character(len=*) :: sln_name
25  class(LinearSolverBaseType), pointer :: solver
26 
27  solver => null()
28 
29  if (solver_mode == 'IMS') then
30  solver => create_ims_solver(sln_name)
31  return
32 #if defined(__WITH_PETSC__)
33  else if (solver_mode == 'PETSC') then
34  solver => create_petsc_solver(sln_name)
35 #endif
36  else
37  call ustop('Unsupported solver mode: '//trim(solver_mode))
38  end if
39 
Here is the call graph for this function:
Here is the caller graph for this function: