Namespace run_mod¶
Public Functions¶
| Type | Name |
|---|---|
| subroutine, public | finalize_process (type(duststatetype), intent(inout) duststate, type(seasaltstatetype), intent(inout) seasaltstate, type(drydepstatetype), intent(inout) drydepstate, integer, intent(out) rc) Finalize all CATChem atmospheric chemistry processes. |
| subroutine, public | init_process (type(configtype), intent(in) config, type(chemstatetype), intent(inout) chemstate, type(emisstatetype), intent(inout) emisstate, type(duststatetype), intent(inout) duststate, type(seasaltstatetype), intent(inout) seasaltstate, type(drydepstatetype), intent(inout) drydepstate, integer, intent(inout) rc) Initialize all CATChem atmospheric chemistry processes. |
| subroutine, public | run_process (type(metstatetype), intent(in) metstate, type(diagstatetype), intent(inout) diagstate, type(chemstatetype), intent(inout) chemstate, type(emisstatetype), intent(inout) emisstate, type(duststatetype), intent(inout) duststate, type(seasaltstatetype), intent(inout) seasaltstate, type(drydepstatetype), intent(inout) drydepstate, integer, intent(out) rc) Run all CATChem atmospheric chemistry processes. |
Public Functions Documentation¶
function finalize_process¶
Finalize all CATChem atmospheric chemistry processes.
subroutine, public run_mod::finalize_process (
type(duststatetype), intent(inout) duststate,
type(seasaltstatetype), intent(inout) seasaltstate,
type(drydepstatetype), intent(inout) drydepstate,
integer, intent(out) rc
)
This subroutine performs cleanup and finalization for all atmospheric chemistry processes, deallocating memory and closing any open resources.
Parameters:
DustStateThe dust process state to finalizeSeaSaltStateThe sea salt process state to finalizeDryDepStateThe dry deposition process state to finalizeRCThe return code indicating success (CC_SUCCESS) or failure
The finalization includes: * Cleanup of dust emission process state * Cleanup of sea salt emission process state * Cleanup of dry deposition process state * Cleanup of wet deposition process state (planned)
Note:
This routine should be called at the end of simulation
Warning:
RC should be checked after calling this routine
function init_process¶
Initialize all CATChem atmospheric chemistry processes.
subroutine, public run_mod::init_process (
type(configtype), intent(in) config,
type( chemstatetype ), intent(inout) chemstate,
type(emisstatetype), intent(inout) emisstate,
type(duststatetype), intent(inout) duststate,
type(seasaltstatetype), intent(inout) seasaltstate,
type(drydepstatetype), intent(inout) drydepstate,
integer, intent(inout) rc
)
This subroutine performs initialization of all atmospheric chemistry processes including dust emission, sea salt emission, and dry deposition. It must be called before any process execution routines.
Parameters:
configThe CATChem configuration object containing setup parametersChemStateThe chemical state to be initialized with species dataEmisStateThe emission state to be initialized for emission processesDustStateThe dust process state to be initializedSeaSaltStateThe sea salt process state to be initializedDryDepStateThe dry deposition process state to be initializedRCThe return code indicating success (CC_SUCCESS) or failure
The initialization includes: * Setting up dust emission process parameters and lookup tables * Configuring sea salt emission parameterizations * Preparing dry deposition velocity calculations * Validating process configuration consistency
Note:
This routine must be called after state allocation but before process execution
Warning:
RC should be checked after calling this routine
function run_process¶
Run all CATChem atmospheric chemistry processes.
subroutine, public run_mod::run_process (
type( metstatetype ), intent(in) metstate,
type(diagstatetype), intent(inout) diagstate,
type( chemstatetype ), intent(inout) chemstate,
type(emisstatetype), intent(inout) emisstate,
type(duststatetype), intent(inout) duststate,
type(seasaltstatetype), intent(inout) seasaltstate,
type(drydepstatetype), intent(inout) drydepstate,
integer, intent(out) rc
)
This subroutine executes all enabled atmospheric chemistry processes including emissions, dry deposition, and other chemical processes for a single time step.
Parameters:
MetStateThe meteorological state containing atmospheric conditionsDiagStateThe diagnostic state for storing process outputsChemStateThe chemical state containing species concentrationsEmisStateThe emission state containing emission dataDustStateThe dust process stateSeaSaltStateThe sea salt process stateDryDepStateThe dry deposition process stateRCThe return code indicating success (CC_SUCCESS) or failure
The processes are executed in the following order: * Emission processes (dust, sea salt, etc.) * Dry deposition calculations * Wet deposition calculations (planned)
Note:
All processes update the ChemState and DiagState objects
Warning:
RC should be checked after calling this routine
The documentation for this class was generated from the following file src/api/run_mod.F90