tem_varSys_append_derVar Subroutine

public subroutine tem_varSys_append_derVar(me, varname, operType, nComponents, input_varname, input_varIndex, method_data, get_point, get_element, set_params, get_params, setup_indices, get_valOfIndex, pos, wasAdded)

Append a new (non-state) variable to the variable system.

Non-state variables might depend on other variables, and do not modify the internal state variable counter.

Arguments

TypeIntentOptionalAttributesName
type(tem_varSys_type), intent(inout) :: me

Variable system to append the state variable to.

character(len=*), intent(in) :: varname

Variable to append to the state.

character(len=*), intent(in), optional :: operType

Operation type

integer, intent(in) :: nComponents

Number of components in this variable.

character(len=*), intent(in), optional :: input_varname(:)

List of variable names, this variable depends on.

(Might be empty). The variable will only be appended, if all invars are already found in the variable system.

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

Component index to access from input variable nComponents

(Might be empty). The variable will only be appended, if all index are available in input_varname

type(c_ptr), intent(in) :: method_data

Data that is required by the methods to obtain the variable.

procedure(tem_varSys_proc_point), pointer:: get_point

Procedure which allows the retrieval of the variable at given points.

procedure(tem_varSys_proc_element), pointer:: get_element

Procedure which allows the retrieval of the variable in an element.

procedure(tem_varSys_proc_setParams), optional pointer:: set_params

Procedure which allows to set parameter in method_data

procedure(tem_varSys_proc_getParams), optional pointer:: get_params

Procedure which allows to get parameter in method_data

procedure(tem_varSys_proc_setupIndices), pointer:: setup_indices

Procedure to setup growing array of points, variable value in method_data and return index of points set

procedure(tem_varSys_proc_getValOfIndex), pointer:: get_valOfIndex

Procedure which allows to retrieval of the variable at point or val array index

integer, intent(out), optional :: pos

Position of the variable in the system.

logical, intent(out), optional :: wasAdded

Indicator, if the variable was actually added to the system.


Calls

proc~~tem_varsys_append_dervar~~CallsGraph proc~tem_varsys_append_dervar tem_varSys_append_derVar interface~positionofval~4 positionofval proc~tem_varsys_append_dervar->interface~positionofval~4 interface~append~21 append proc~tem_varsys_append_dervar->interface~append~21 proc~posofval_label posofval_label interface~positionofval~4->proc~posofval_label proc~append_da_veclabel append_da_veclabel interface~append~21->proc~append_da_veclabel proc~append_da_label append_da_label interface~append~21->proc~append_da_label interface~expand~19 expand proc~append_da_veclabel->interface~expand~19 interface~sortedposofval~4 sortedposofval proc~posofval_label->interface~sortedposofval~4 proc~append_da_label->interface~expand~19 proc~append_da_label->interface~sortedposofval~4 proc~expand_da_label expand_da_label interface~expand~19->proc~expand_da_label proc~sortposofval_label sortposofval_label interface~sortedposofval~4->proc~sortposofval_label

Called by

proc~~tem_varsys_append_dervar~~CalledByGraph proc~tem_varsys_append_dervar tem_varSys_append_derVar program~tem_varsys_derivevar_test tem_varSys_deriveVar_test program~tem_varsys_derivevar_test->proc~tem_varsys_append_dervar proc~tem_varsys_append_stfunvar tem_varSys_append_stFunVar proc~tem_varsys_append_stfunvar->proc~tem_varsys_append_dervar program~tem_varsys_test tem_varSys_test program~tem_varsys_test->proc~tem_varsys_append_dervar proc~tem_varsys_append_meshinfovar tem_varSys_append_meshInfoVar proc~tem_varsys_append_meshinfovar->proc~tem_varsys_append_dervar proc~tem_varsys_append_stfun_raw tem_varSys_append_stFun_raw proc~tem_varsys_append_stfun_raw->proc~tem_varsys_append_dervar proc~tem_varsys_append_opervar tem_varSys_append_operVar proc~tem_varsys_append_opervar->proc~tem_varsys_append_dervar interface~tem_varsys_append_stfun tem_varSys_append_stfun interface~tem_varsys_append_stfun->proc~tem_varsys_append_stfunvar interface~tem_varsys_append_stfun->proc~tem_varsys_append_stfun_raw proc~tem_varsys_append_luavar tem_varSys_append_luaVar proc~tem_varsys_append_luavar->proc~tem_varsys_append_opervar proc~tem_varsys_append_luavar->interface~tem_varsys_append_stfun program~tem_varsys_stfunvar_test tem_varSys_stfunVar_test program~tem_varsys_stfunvar_test->proc~tem_varsys_append_luavar proc~check_variableoperations check_variableOperations proc~check_variableoperations->proc~tem_varsys_append_luavar proc~tem_variable_loadmapping_single tem_variable_loadMapping_single proc~tem_variable_loadmapping_single->interface~tem_varsys_append_stfun program~tem_variable_evaltype_test tem_variable_evaltype_test program~tem_variable_evaltype_test->proc~tem_varsys_append_luavar program~tem_variable_extract_test tem_variable_extract_test program~tem_variable_extract_test->proc~tem_varsys_append_luavar program~tem_variable_combine_test tem_variable_combine_Test program~tem_variable_combine_test->proc~tem_varsys_append_luavar program~tem_varsys_opvar_test tem_varSys_opVar_test program~tem_varsys_opvar_test->proc~tem_varsys_append_luavar proc~tem_variable_loadmapping_vector tem_variable_loadMapping_vector proc~tem_variable_loadmapping_vector->proc~tem_variable_loadmapping_single program~tem_logical_opertor_test tem_logical_opertor_test program~tem_logical_opertor_test->proc~check_variableoperations interface~tem_variable_loadmapping tem_variable_loadMapping interface~tem_variable_loadmapping->proc~tem_variable_loadmapping_single

Contents


Variables

TypeVisibilityAttributesNameInitial
logical, public :: newVar
logical, public :: nonexisting_input
type(tem_varSys_op_type), public :: var_access
integer, public :: iIn
integer, public :: nInputs
integer, public :: varPos
integer, public :: in_nComp
integer, public :: nVarIndex
integer, public, allocatable:: inpos(:)
integer, public, allocatable:: input_varIndex_loc(:)