MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
routerfactorymodule Module Reference

Functions/Subroutines

class(routerbasetype) function, pointer, public create_router (sim_mode, nr_sols)
 @ Brief Create the proper router, depends on simulation mode (parallel or sequential) and type of build (with or without mpi)

Function/Subroutine Documentation

◆ create_router()

class(routerbasetype) function, pointer, public routerfactorymodule::create_router ( character(len=*) sim_mode,
integer(i4b) nr_sols )
Parameters
sim_modesimulation mode: SEQUENTIAL or PARALLEL
nr_solsnr. of solutions
Returns
the router object

Definition at line 19 of file RouterFactory.F90.

20 character(len=*) :: sim_mode !< simulation mode: SEQUENTIAL or PARALLEL
21 integer(I4B) :: nr_sols !< nr. of solutions
22 class(RouterBaseType), pointer :: router !< the router object
23
24 if (sim_mode == 'SEQUENTIAL') then
25 router => create_serial_router()
26 router%nr_virt_solutions = nr_sols
27#if defined(__WITH_MPI__)
28 else if (sim_mode == 'PARALLEL') then
29 router => create_mpi_router()
30 router%nr_virt_solutions = nr_sols
31#endif
32 else
33 router => null()
34 end if
35
Here is the call graph for this function:
Here is the caller graph for this function: