to_primitive Subroutine

public pure subroutine to_primitive(u)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(inout) :: u(nw_phys)

Called by

proc~~to_primitive~7~~CalledByGraph proc~to_primitive~7 to_primitive proc~phys_to_primitive~3 phys_to_primitive proc~phys_to_primitive~3->proc~to_primitive~7

Source Code

pure subroutine to_primitive(u)
  
  real(dp), intent(inout) :: u(nw_phys)

  u(iw_mom(1)) = u(iw_mom(1))/u(iw_rho)

  u(iw_e) = gamma_1 * (u(iw_e) - 0.5_dp * u(iw_rho) * &
     u(iw_mom(1))**2 )

end subroutine to_primitive