Namespace init_mod¶
Public Functions¶
| Type | Name |
|---|---|
| subroutine, public | finalize_catchem (type(statecontainertype), intent(inout) container, integer, intent(out) rc) Finalize CATChem and cleanup resources. |
| subroutine, public | initialize_catchem (type(statecontainertype), intent(out) container, character(len=*), intent(in) config_file, integer, intent(out) rc, character(len=*), intent(in), optional container_name) Main CATChem initialization routine. |
| subroutine, public | initialize_core_states (type(statecontainertype), intent(inout) container, integer, intent(out) rc) Initialize core state objects. |
| subroutine, public | initialize_processes (type(statecontainertype), intent(inout) container, integer, intent(out) rc) Initialize atmospheric chemistry processes. |
| subroutine, public | validate_initialization (type(statecontainertype), intent(inout) container, integer, intent(out) rc) Validate complete initialization. |
Public Functions Documentation¶
function finalize_catchem¶
Finalize CATChem and cleanup resources.
subroutine, public init_mod::finalize_catchem (
type(statecontainertype), intent(inout) container,
integer, intent(out) rc
)
This routine performs cleanup of all CATChem components and resources.
Parameters:
containerStateContainer to finalizercReturn code
function initialize_catchem¶
Main CATChem initialization routine.
subroutine, public init_mod::initialize_catchem (
type(statecontainertype), intent(out) container,
character(len=*), intent(in) config_file,
integer, intent(out) rc,
character(len=*), intent(in), optional container_name
)
This is the primary initialization routine that sets up a complete CATChem instance using the StateContainer pattern with comprehensive error handling.
Parameters:
containerInitialized StateContainer with all componentsconfig_filePath to configuration filecontainer_nameOptional name for the containerrcReturn code
function initialize_core_states¶
Initialize core state objects.
subroutine, public init_mod::initialize_core_states (
type(statecontainertype), intent(inout) container,
integer, intent(out) rc
)
This routine initializes all core state objects (Met, Chem, Emis, Diag) within the StateContainer.
Parameters:
containerStateContainer to initializercReturn code
function initialize_processes¶
Initialize atmospheric chemistry processes.
subroutine, public init_mod::initialize_processes (
type(statecontainertype), intent(inout) container,
integer, intent(out) rc
)
This routine initializes all atmospheric chemistry processes (dust, seasalt, dry deposition, etc.) based on the loaded configuration.
Parameters:
containerStateContainer with processes to initializercReturn code
function validate_initialization¶
Validate complete initialization.
subroutine, public init_mod::validate_initialization (
type(statecontainertype), intent(inout) container,
integer, intent(out) rc
)
This routine performs comprehensive validation of the initialized StateContainer to ensure all components are properly set up and consistent.
Parameters:
containerStateContainer to validatercReturn code
The documentation for this class was generated from the following file src/core/init_mod.F90