CCPP SciDoc  v6.0.0
Common Community Physics Package Developed at DTC

◆ mp_thompson_init()

subroutine, public mp_thompson::mp_thompson_init ( integer, intent(in)  ncol,
integer, intent(in)  nlev,
real(kind_phys), intent(in)  con_g,
real(kind_phys), intent(in)  con_rd,
real(kind_phys), intent(in)  con_eps,
logical, intent(in)  restart,
integer, intent(in)  imp_physics,
integer, intent(in)  imp_physics_thompson,
logical, intent(in)  convert_dry_rho,
real(kind_phys), dimension(:,:), intent(inout)  spechum,
real(kind_phys), dimension(:,:), intent(inout)  qc,
real(kind_phys), dimension(:,:), intent(inout)  qr,
real(kind_phys), dimension(:,:), intent(inout)  qi,
real(kind_phys), dimension(:,:), intent(inout)  qs,
real(kind_phys), dimension(:,:), intent(inout)  qg,
real(kind_phys), dimension(:,:), intent(inout)  ni,
real(kind_phys), dimension(:,:), intent(inout)  nr,
logical, intent(in)  is_aerosol_aware,
real(kind_phys), dimension(:,:), intent(inout)  nc,
real(kind_phys), dimension(:), intent(inout)  nwfa2d,
real(kind_phys), dimension(:), intent(inout)  nifa2d,
real(kind_phys), dimension(:,:), intent(inout)  nwfa,
real(kind_phys), dimension(:,:), intent(inout)  nifa,
real(kind_phys), dimension(:,:), intent(in)  tgrs,
real(kind_phys), dimension(:,:), intent(in)  prsl,
real(kind_phys), dimension(:,:), intent(in)  phil,
real(kind_phys), dimension(:), intent(in)  area,
integer, intent(in)  mpicomm,
integer, intent(in)  mpirank,
integer, intent(in)  mpiroot,
integer, intent(in)  threads,
logical, intent(in)  ext_diag,
real(kind_phys), dimension(:,:,:), intent(in)  diag3d,
character(len=*), intent(out)  errmsg,
integer, intent(out)  errflg 
)

Argument Table

mp_thompson_init argument table
local_namestandard_namelong_nameunitstypedimensionskindintent
ncolhorizontal_dimensionhorizontal dimensioncountinteger()in
nlevvertical_layer_dimensionnumber of vertical levelscountinteger()in
con_ggravitational_accelerationgravitational accelerationm s-2real()kind_physin
con_rdgas_constant_of_dry_airideal gas constant for dry airJ kg-1 K-1real()kind_physin
con_epsratio_of_dry_air_to_water_vapor_gas_constantsrd/rvnonereal()kind_physin
restartflag_for_restartflag for restart (warmstart) or coldstartflaglogical()in
imp_physicscontrol_for_microphysics_schemechoice of microphysics schemeflaginteger()in
imp_physics_thompsonidentifier_for_thompson_microphysics_schemechoice of Thompson microphysics schemeflaginteger()in
convert_dry_rhoflag_for_converting_hydrometeors_from_moist_to_dry_airflag for converting hydrometeors from moist to dry airflaglogical()in
spechumspecific_humiditywater vapor specific humiditykg kg-1real(ccpp_constant_one:horizontal_dimension, ccpp_constant_one:vertical_layer_dimension)kind_physinout
qccloud_liquid_water_mixing_ratiocloud water mixing ratio wrt dry+vapor (no condensates)kg kg-1real(ccpp_constant_one:horizontal_dimension, ccpp_constant_one:vertical_layer_dimension)kind_physinout
qrrain_mixing_ratiorain water mixing ratio wrt dry+vapor (no condensates)kg kg-1real(ccpp_constant_one:horizontal_dimension, ccpp_constant_one:vertical_layer_dimension)kind_physinout
qicloud_ice_mixing_ratioice water mixing ratio wrt dry+vapor (no condensates)kg kg-1real(ccpp_constant_one:horizontal_dimension, ccpp_constant_one:vertical_layer_dimension)kind_physinout
qssnow_mixing_ratiosnow water mixing ratio wrt dry+vapor (no condensates)kg kg-1real(ccpp_constant_one:horizontal_dimension, ccpp_constant_one:vertical_layer_dimension)kind_physinout
qggraupel_mixing_ratiograupel mixing ratio wrt dry+vapor (no condensates)kg kg-1real(ccpp_constant_one:horizontal_dimension, ccpp_constant_one:vertical_layer_dimension)kind_physinout
nimass_number_concentration_of_cloud_ice_water_crystals_in_airice number concentrationkg-1real(ccpp_constant_one:horizontal_dimension, ccpp_constant_one:vertical_layer_dimension)kind_physinout
nrmass_number_concentration_of_rain_water_in_airrain number concentrationkg-1real(ccpp_constant_one:horizontal_dimension, ccpp_constant_one:vertical_layer_dimension)kind_physinout
is_aerosol_awareflag_for_aerosol_physicsflag for aerosol-aware physicsflaglogical()in
ncmass_number_concentration_of_cloud_liquid_water_particles_in_aircloud droplet number concentrationkg-1real(ccpp_constant_one:horizontal_dimension, ccpp_constant_one:vertical_layer_dimension)kind_physinout
nwfa2dtendency_of_hygroscopic_aerosols_at_surface_adjacent_layerinstantaneous fake water-friendly surface aerosol sourcekg-1 s-1real(ccpp_constant_one:horizontal_dimension)kind_physinout
nifa2dtendency_of_nonhygroscopic_ice_nucleating_aerosols_at_surface_adjacent_layerinstantaneous fake ice-friendly surface aerosol sourcekg-1 s-1real(ccpp_constant_one:horizontal_dimension)kind_physinout
nwfamass_number_concentration_of_hygroscopic_aerosolsnumber concentration of water-friendly aerosolskg-1real(ccpp_constant_one:horizontal_dimension, ccpp_constant_one:vertical_layer_dimension)kind_physinout
nifamass_number_concentration_of_nonhygroscopic_ice_nucleating_aerosolsnumber concentration of ice-friendly aerosolskg-1real(ccpp_constant_one:horizontal_dimension, ccpp_constant_one:vertical_layer_dimension)kind_physinout
tgrsair_temperaturemodel layer mean temperatureKreal(ccpp_constant_one:horizontal_dimension, ccpp_constant_one:vertical_layer_dimension)kind_physin
prslair_pressuremean layer pressurePareal(ccpp_constant_one:horizontal_dimension, ccpp_constant_one:vertical_layer_dimension)kind_physin
philgeopotentialgeopotential at model layer centersm2 s-2real(ccpp_constant_one:horizontal_dimension, ccpp_constant_one:vertical_layer_dimension)kind_physin
areacell_areaarea of the grid cellm2real(ccpp_constant_one:horizontal_dimension)kind_physin
mpicommmpi_communicatorMPI communicatorindexinteger()in
mpirankmpi_rankcurrent MPI-rankindexinteger()in
mpirootmpi_rootmaster MPI-rankindexinteger()in
threadsnumber_of_openmp_threadsnumber of OpenMP threads available to schemecountinteger()in
ext_diagflag_for_extended_diagnostic_output_from_thompson_microphysicsflag for extended diagnostic output from thompson microphysicsflaglogical()in
diag3dextended_diagnostics_output_from_thompson_microphysicsset of 3d arrays for extended diagnostics output from thompson microphysicsnonereal(ccpp_constant_one:horizontal_dimension, ccpp_constant_one:vertical_layer_dimension, ccpp_constant_one:number_of_3d_diagnostic_output_arrays_from_thompson_microphysics)kind_physin
errmsgccpp_error_messageerror message for error handling in CCPPnonecharacter()len=*out
errflgccpp_error_codeerror code for error handling in CCPP1integer()out
  • Convert specific humidity to water vapor mixing ratio.
    • Also, hydrometeor variables are mass or number mixing ratio
    • either kg of species per kg of dry air, or per kg of (dry + vapor).

References module_mp_thompson_make_number_concentrations::make_dropletnumber(), module_mp_thompson_make_number_concentrations::make_icenumber(), module_mp_thompson_make_number_concentrations::make_rainnumber(), and module_mp_thompson::thompson_init().

Here is the call graph for this function: