atl_varSys_setupStateIndices Subroutine

public subroutine atl_varSys_setupStateIndices(fun, varSys, point, offset_bit, iLevel, tree, nPnts, idx)

This routine takes points coordinates, stores them in the method_data and return indices where points are located in the growing array of points or values ( sometimes we do not need to store the points ) It is need to setup points for every variable. Points will be provided by boundaries or sources depends on what uses the variable. This points do not change with time . This indices will be stored in corresponding boundary or source to evaluate a value on that point later using tem_varSys_proc_getValOfIndex.

Arguments

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

Description of the method to obtain the variables, for this routine we need the location where to store the points.

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

The variable system to obtain the variable from.

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

arrays of points for which the indices are returned

character, intent(in), optional :: offset_bit(:)

Offset bit encoded as character for every point. If not present default is to center i.e offset_bit = achar(1+4+16)

integer, intent(in) :: iLevel

the point data need to be loaded levelwise, we need the current level

type(treelmesh_type), intent(in) :: tree

global treelm mesh info

integer, intent(in) :: nPnts

number of points

integer, intent(out) :: idx(:)

Calls

proc~~atl_varsys_setupstateindices~~CallsGraph proc~atl_varsys_setupstateindices atl_varSys_setupStateIndices interface~truncate~4 truncate proc~atl_varsys_setupstateindices->interface~truncate~4 proc~tem_coordofreal tem_CoordOfReal proc~atl_varsys_setupstateindices->proc~tem_coordofreal proc~tem_posofid tem_PosOfId proc~atl_varsys_setupstateindices->proc~tem_posofid interface~append~6 append proc~atl_varsys_setupstateindices->interface~append~6 proc~tem_levelof tem_LevelOf proc~atl_varsys_setupstateindices->proc~tem_levelof proc~tem_baryofid tem_BaryOfId proc~atl_varsys_setupstateindices->proc~tem_baryofid proc~tem_idofcoord tem_IdOfCoord proc~atl_varsys_setupstateindices->proc~tem_idofcoord proc~tem_elemsize tem_ElemSize proc~atl_varsys_setupstateindices->proc~tem_elemsize

Contents


Variables

TypeVisibilityAttributesNameInitial
integer, private :: iPoint
integer, private :: coord(4)
integer(kind=long_k), private :: treeID
integer, private :: elemPos
integer, private :: loc_level
real(kind=rk), private :: extent
real(kind=rk), private :: halfwidth
real(kind=rk), private :: MappedCoord(3)
real(kind=rk), private :: bary(3)
type(atl_varSys_data_type), private, pointer:: fPtr