Append a new auxiliaryField variable to the variable system.
Note that the actual data on how to access the state has to be encoded in the method_data pointer. The callers therefore have to ensure the consistency of those access definitions. nComponents has to be at least 1.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
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. |
||
integer, | intent(in) | :: | nComponents | Number of components in this variable. |
||
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. |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
logical, | public | :: | newVar | ||||
type(tem_varSys_op_type), | public | :: | auxField_access | ||||
integer, | public | :: | iComp | ||||
integer, | public | :: | varPos |