atl_eqn_euler_2d_cons2prim_elems Subroutine

public subroutine atl_eqn_euler_2d_cons2prim_elems(equation, instate, outstate, nElems)

Convert conservative to primitive variables.

The interface has to comply to the abstract interface atl_equation_module#eqn_var_trafo "eqn_var_trafo".

Arguments

Type IntentOptional Attributes Name
class(atl_Equations_type), intent(in) :: equation

Description of the equation system.

real(kind=rk), intent(inout) :: instate(:,:,:)

Primitive variables to convert. If outstate is not provided, conversion will take in place of instate.

real(kind=rk), intent(out), optional :: outstate(:,:,:)

Converted variables.

integer, intent(in) :: nElems

Number of elements to act on (first index in the state arrays).