MPAS-Dev / MPAS-Model

Repository for MPAS models and shared framework releases.
241 stars 321 forks source link

moving dtheta dt mp out of subroutine driver_microphysics #1041

Closed ldfowler58 closed 1 year ago

ldfowler58 commented 1 year ago

This PR moves the variable dtheta_dt_mp from subroutine driver_microphysics in mpas_atmphys_driver_microphysics.F to subroutine microphysics_to_MPAS in mpas_atmphys_interface.F.

subroutine driver_microphysics mainly contains calls to different cloud microphysics schemes whereas interactions between physics and the MPAS framework are computed in subroutines microphysics_from_MPAS and microphysics_to_MPAS. This logic helps keep the sourcecode more consise. Because the computation of dtheta_dt_mp is very similar to and uses the same set of variables as the variable rt_diabatic_tend, it is now computed in conjunction with rt_diabatic_tend in subroutine microphysics_to_MPAS. In addition, its definition is moved from ./diagnostics/Registry_pv.xml to Registry.xml.