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

Functions/Subroutines

class(atstype) function, pointer, public create_ats ()
 Factory method to create ATS object, to hide.

Function/Subroutine Documentation

◆ create_ats()

class(atstype) function, pointer, public atsfactorymodule::create_ats

Definition at line 16 of file AtsFactory.F90.

18 class(AtsType), pointer :: ats
19 ! local
20#if defined(__WITH_MPI__)
21 class(ParallelAtsType), pointer :: par_ats
22#endif
23
24 if (simulation_mode == 'SEQUENTIAL') then
25 allocate (ats)
26#if defined(__WITH_MPI__)
27 else if (simulation_mode == 'PARALLEL') then
28 allocate (par_ats)
29 ats => par_ats
30#endif
31 else
32 call ustop('Unsupported simulation mode for creating ATS: '&
33 &//trim(simulation_mode))
34 end if
35
This module contains simulation variables.
character(len=linelength) simulation_mode
Here is the call graph for this function:
Here is the caller graph for this function: