SetNumberOfVariables_ESAtmo2D_t Subroutine

public subroutine SetNumberOfVariables_ESAtmo2D_t(this)

Five conserved variables: (rho, rhou, rhov, rhotheta, Phi), where Phi = gy 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(ESAtmo2D_t), intent(inout) :: this

Contents


Source Code

  subroutine SetNumberOfVariables_ESAtmo2D_t(this)
    !! Five conserved variables: (rho, rho*u, rho*v, rho*theta, Phi),
    !! where Phi = g*y 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(ESAtmo2D_t),intent(inout) :: this

    this%nvar = 5

  endsubroutine SetNumberOfVariables_ESAtmo2D_t