derive_auxFromState Abstract Interface

abstract interface
private subroutine derive_auxFromState(derVarPos, state, iField, nElems, nSize, iLevel, stencil, varSys, auxField)


class(mus_derVarPos_type), intent(in) :: derVarPos

Position of current field derive variable in variable system

real(kind=rk), intent(in) :: state(:)

Array of state nSize * layout%stencil(1)%QQ * nFields use IDX macro to access this state

integer, intent(in) :: iField

Current field

integer, intent(in) :: nElems

number of elements to compute

integer, intent(in) :: nSize

number of elements in state array

integer, intent(in) :: iLevel

current level

type(tem_stencilHeader_type), intent(in) :: stencil

stencil header contains discrete velocity vectors

type(tem_varSys_type), intent(in) :: varSys

variable system which is required to access fieldProp information via variable method data c_ptr

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

Output of this routine auxField is inout to allow storing auxField for each species seperately Size: nElems*nAuxScalars


Derive auxField from local state. \todo KM: pass external force to add to auxField