Skip to content

Namespace carbchemscheme_gocart_mod

Namespace List > carbchemscheme_gocart_mod

Public Functions

Type Name
subroutine, public compute_gocart (integer, intent(in) num_layers, integer, intent(in) num_species, type(carbchemschemegocartconfig), intent(in) params, real(fp), intent(in) g0, integer, intent(in) year, integer, intent(in) month, integer, intent(in) day, integer, intent(in) hour, integer, intent(in) minute, integer, intent(in) second, real(fp), dimension(num_layers), intent(in) airden, real(fp), dimension(num_layers), intent(in) delp, real(fp), dimension(num_layers), intent(in) pmid, real(fp), intent(in) tstep, real(fp), dimension(:), intent(in) species_t_chem_loss, character(len=32), dimension(:), intent(in) species_short_name, real(fp), dimension(num_layers, num_species), intent(in) species_conc, real(fp), dimension(num_layers, num_species), intent(inout) species_tendencies, real(fp), dimension(:,:), intent(inout), optional production_mass_per_species_per_level, real(fp), dimension(:), intent(inout), optional loss_flux_per_species, real(fp), dimension(:,:), intent(inout), optional phobictophilic_mass_per_species_per_level, real(fp), dimension(:), intent(inout), optional phobictophilic_flux_per_species, integer, dimension(:), intent(in), optional diagnostic_species_id)
Pure science computation for gocart scheme.

Public Functions Documentation

function compute_gocart

Pure science computation for gocart scheme.

subroutine, public carbchemscheme_gocart_mod::compute_gocart (
    integer, intent(in) num_layers,
    integer, intent(in) num_species,
    type( carbchemschemegocartconfig ), intent(in) params,
    real(fp), intent(in) g0,
    integer, intent(in) year,
    integer, intent(in) month,
    integer, intent(in) day,
    integer, intent(in) hour,
    integer, intent(in) minute,
    integer, intent(in) second,
    real(fp), dimension(num_layers), intent(in) airden,
    real(fp), dimension(num_layers), intent(in) delp,
    real(fp), dimension(num_layers), intent(in) pmid,
    real(fp), intent(in) tstep,
    real(fp), dimension(:), intent(in) species_t_chem_loss,
    character(len=32), dimension(:), intent(in) species_short_name,
    real(fp), dimension(num_layers, num_species), intent(in) species_conc,
    real(fp), dimension(num_layers, num_species), intent(inout) species_tendencies,
    real(fp), dimension(:,:), intent(inout), optional production_mass_per_species_per_level,
    real(fp), dimension(:), intent(inout), optional loss_flux_per_species,
    real(fp), dimension(:,:), intent(inout), optional phobictophilic_mass_per_species_per_level,
    real(fp), dimension(:), intent(inout), optional phobictophilic_flux_per_species,
    integer, dimension(:), intent(in), optional diagnostic_species_id
) 

This is a pure computational kernel implementing GOCART carbon species chemical production and loss scheme. NO error checking, validation, or infrastructure concerns. Host model must ensure all inputs are valid before calling.

Parameters:

  • num_layers Number of vertical layers
  • num_species Number of chemical species
  • params Scheme parameters (pre-validated by host)
  • g0 Required constant from Constants module
  • year Time parameter from TimeState (year)
  • month Time parameter from TimeState (month)
  • day Time parameter from TimeState (day)
  • hour Time parameter from TimeState (hour)
  • minute Time parameter from TimeState (minute)
  • second Time parameter from TimeState (second)
  • airden AIRDEN field [appropriate units]
  • delp DELP field [appropriate units]
  • pmid PMID field [appropriate units]
  • tstep Time step [s] - retrieved from process interface
  • species_t_chem_loss Species t_chem_loss property
  • species_short_name Species short_name property
  • species_conc Species concentrations [mol/mol] (num_layers, num_species)
  • species_tendencies Species tendency terms [mol/mol/s] (num_layers, num_species)
  • Production_mass_per_species_per_level Production mass (negative for loss) per species per level [kg/kg] (num_layers, num_species)
  • loss_flux_per_species chemical loss flux per species [kg/m2/s] (num_species)
  • PhobicToPhilic_flux_per_species conversion flux from hydrophobic to hydrophilic per species [kg/m2/s] (num_species)
  • diagnostic_species_id Indices mapping diagnostic species to species array (optional, for per-species diagnostics)


The documentation for this class was generated from the following file src/process/carbchem/schemes/CarbChemScheme_GOCART_Mod.F90