mus_stateVar_Fetch_fromIndex Subroutine

public subroutine mus_stateVar_Fetch_fromIndex(fun, varSys, time, iLevel, idx, idxLen, nVals, res)

Routine to get the actual value for a given array of indices. The indices belong to the grwarray of points storing levelwise in Pointdata%pntLvl(iLevel). Hence this routines takes the indeices as input, can refer to the pointData and evaluate the variable and returns the values

Arguments

TypeIntentOptionalAttributesName
class(tem_varSys_op_type), intent(in) :: fun

Description of the method to obtain the variables,

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

The variable system to obtain the variable from.

type(tem_time_type), intent(in) :: time

Point in time at which to evaluate the variable.

integer, intent(in) :: iLevel

Level on which values are requested

integer, intent(in) :: idx(:)

Index of points in the growing array and variable val array to return. Size: n

integer, intent(in), optional :: idxLen(:)

With idx as start index in contiguous memory, idxLength defines length of each contiguous memory Size: dependes on number of first index for contiguous array, but the sum of all idxLen is equal to nVals

integer, intent(in) :: nVals

Number of values to obtain for this variable (vectorized access).

real(kind=rk), intent(out) :: res(:)

Resulting values for the requested variable.

Dimension: n requested entries x nComponents of this variable Access: (iElem-1)*fun%nComponents + iComp


Calls

proc~~mus_statevar_fetch_fromindex~~CallsGraph proc~mus_statevar_fetch_fromindex mus_stateVar_Fetch_fromIndex proc~tem_abort tem_abort proc~mus_statevar_fetch_fromindex->proc~tem_abort

Contents


Variables

TypeVisibilityAttributesNameInitial
type(mus_varSys_data_type), private, pointer:: fPtr
type(mus_scheme_type), private, pointer:: scheme
integer, private :: iComp
integer, private :: iSrc
integer, private :: iVal
integer, private :: elemPos
integer, private :: first
integer, private :: last
integer, private :: nSize
integer, private :: loc_level
integer, private :: nSrcElems
integer, private :: iFld
integer, private :: QQ
integer, private :: nScalars
real(kind=rk), private, allocatable:: srcRes(:)
real(kind=rk), private, allocatable:: pntVal(:)
real(kind=rk), private :: weight