SetNumberOfVariables_ESAtmo3D_t Subroutine

public subroutine SetNumberOfVariables_ESAtmo3D_t(this)

Six conserved variables: (rho, rhou, rhov, rhow, rhotheta, Phi), where Phi = g*z is the geopotential. Phi has zero flux (volume and surface) so its tendency is identically zero; it is carried in the state vector solely so that the Souza et al. (2023) non-conservative gravity flux differencing in SourceMethod can read it node-locally.

Arguments

TypeIntentOptionalAttributesName
class(ESAtmo3D_t), intent(inout) :: this

Contents


Source Code

  subroutine SetNumberOfVariables_ESAtmo3D_t(this)
    !! Six conserved variables: (rho, rho*u, rho*v, rho*w, rho*theta, Phi),
    !! where Phi = g*z is the geopotential. Phi has zero flux (volume and
    !! surface) so its tendency is identically zero; it is carried in the
    !! state vector solely so that the Souza et al. (2023) non-conservative
    !! gravity flux differencing in SourceMethod can read it node-locally.
    implicit none
    class(ESAtmo3D_t),intent(inout) :: this

    this%nvar = 6

  endsubroutine SetNumberOfVariables_ESAtmo3D_t