Nodes of different colours represent the following:
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
Compute the virtual temperature tv as a function of the modified moist temperature tm and
the water vapor mixing ratio qv.
Essentially, . This modified "moist" temperature is described herein:
The paragraph below equation 2.7 in doi:10.5065/1DFH-6P97.
The paragraph below equation 2 in doi:10.1175/MWR-D-11-00215.1.
Similarly, it can be shown that the relation, , also holds.
(KCW, 2025-07-11)
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Source Code
pure elemental function tv_of_tm_qv(tm,qv)result(tv)use,intrinsic::iso_fortran_env,only:real64real(real64),intent(in)::tm,qvreal(real64)::tvtv=tm/(1.0_real64+qv)end function tv_of_tm_qv