atl_eqn_euler_prim2cons_elems Subroutine

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

Convert primitive varibales to conservative 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.

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).