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

Functions/Subroutines

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

Function/Subroutine Documentation

◆ create_router()

class(routerbasetype) function, pointer, public routerfactorymodule::create_router ( character(len=*)  sim_mode)
Parameters
sim_modesimulation mode: SEQUENTIAL or PARALLEL
Returns
the router object

Definition at line 18 of file RouterFactory.F90.

19  character(len=*) :: sim_mode !< simulation mode: SEQUENTIAL or PARALLEL
20  class(RouterBaseType), pointer :: router !< the router object
21 
22  if (sim_mode == 'SEQUENTIAL') then
23  router => create_serial_router()
24 #if defined(__WITH_MPI__)
25  else if (sim_mode == 'PARALLEL') then
26  router => create_mpi_router()
27 #endif
28  else
29  router => null()
30  end if
31 
Here is the call graph for this function: