MODFLOW 6  version 6.7.0.dev0
USGS Modular Hydrologic Model
runcontrolfactorymodule Module Reference

Functions/Subroutines

class(runcontroltype) function, pointer, public create_run_control ()
 

Function/Subroutine Documentation

◆ create_run_control()

class(runcontroltype) function, pointer, public runcontrolfactorymodule::create_run_control

Definition at line 14 of file RunControlFactory.F90.

15  use simmodule, only: store_error
17  class(RunControlType), pointer :: controller
18  ! local
19  character(len=LINELENGTH) :: errmsg
20 
21  errmsg = ''
22 #if defined(__WITH_MPI__)
23  if (simulation_mode == 'PARALLEL') then
24  controller => create_mpi_run_control()
25  else
26  controller => create_seq_run_control()
27  end if
28 #else
29  if (simulation_mode == 'PARALLEL') then
30  write (errmsg, '(a)') &
31  'Can not run parallel mode with this executable: no MPI'
32  call store_error(errmsg, terminate=.true.)
33  end if
34  controller => create_seq_run_control()
35 #endif
36 
This module contains simulation methods.
Definition: Sim.f90:10
subroutine, public store_error(msg, terminate)
Store an error message.
Definition: Sim.f90:92
This module contains simulation variables.
Definition: SimVariables.f90:9
character(len=linelength) simulation_mode
Here is the call graph for this function:
Here is the caller graph for this function: