Contains varMap type definition to store requested variable position in the global varSys and routine to create varMap from given variable labels
This is especially useful wherever a set of variables needs to be provided, for example in tracking objects. There is a routine to read a list of labels, and one routine to look these labels up in a variable system, and store the position of each variable in that system.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_possible_variable_type), | intent(out) | :: | me |
Possible variables |
||
integer, | intent(in) | :: | length |
Minimum length to expand the array |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_possible_variable_type), | intent(inout) | :: | me |
Possible variables |
||
character(len=*), | intent(in) | :: | varName |
variable name |
||
integer, | intent(in) | :: | nComponents |
number of components |
||
integer, | intent(out), | optional | :: | pos |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_possible_variable_type), | intent(inout) | :: | me |
Possible variables |
Loads the variable mapping from a table defined by given key for the variable names defined in possVars list. A variable mapping is used to link a user defined variable to a variable expected from, e.g., an equation system. These mappings are stored in varDict, which basically is a dictionary, whereas the key contains the name of the expected variable and the value contains the name of the user defined variable in the variable table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_possible_variable_type), | intent(in) | :: | possVars |
Possible variable names expected by the solver |
||
type(flu_State), | intent(in) | :: | conf |
lua config file |
||
integer, | intent(in), | optional | :: | parent |
optional parent handle |
|
character(len=*), | intent(in), | optional | :: | key |
optional key for the table |
|
type(grw_stringkeyvaluepairarray_type), | intent(inout) | :: | varDict |
The dictionary that contains the mapping between expected variables and the actual variables defined by the user. |
||
type(tem_varSys_type), | intent(inout) | :: | varSys |
Variable system to append anonymous variables to. |
Loads the variable mapping from a table for single expected name. A variable mapping is used to link a user defined variable to a variable expected from, e.g., an equation system. These mappings are stored in varDict, which basically is a dictionary, whereas the key contains the name of the expected variable and the value contains the name of the user defined variable in the variable table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | expectedName |
Expected variable name from config file |
||
type(flu_State), | intent(in) | :: | conf |
lua config file |
||
integer, | intent(in) | :: | thandle |
table handle |
||
type(grw_stringkeyvaluepairarray_type), | intent(inout) | :: | varDict |
The dictionary that contains the mapping between expected variables and the actual variables defined by the user. |
||
type(tem_varSys_type), | intent(inout) | :: | varSys |
Variable system to append anonymous variables to. |
||
integer, | intent(in), | optional | :: | nComp |
Number of components we expect for this variable. |
|
type(tem_varSys_solverData_evalElem_type), | intent(in), | optional | :: | solverData_evalElem |
Routine to convert point information into an element representation. |
|
integer, | intent(out), | optional | :: | ErrCode |
Error code |
Contains variable labels and their positions in a varSys
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(grw_labelarray_type), | public | :: | varName |
Array of active variable labels |
|||
type(grw_intarray_type), | public | :: | varPos |
Position of appended variable in the global variable system |
|||
integer, | public | :: | nScalars |
number of scalars of variables in varPos |
Contains possible variable labels and their nComponents
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(dyn_labelarray_type), | public | :: | varName |
Array of possible variable labels |
|||
type(grw_intarray_type), | public | :: | nComponents |
Number of components of variable in dynamic array of varName |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_possible_variable_type), | intent(out) | :: | me |
Possible variables |
||
integer, | intent(in) | :: | length |
Minimum length to expand the array |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_possible_variable_type), | intent(inout) | :: | me |
Possible variables |
||
character(len=*), | intent(in) | :: | varName |
variable name |
||
integer, | intent(in) | :: | nComponents |
number of components |
||
integer, | intent(out), | optional | :: | pos |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_possible_variable_type), | intent(inout) | :: | me |
Possible variables |
Loads the variable mapping from a table defined by given key for the variable names defined in possVars list. A variable mapping is used to link a user defined variable to a variable expected from, e.g., an equation system. These mappings are stored in varDict, which basically is a dictionary, whereas the key contains the name of the expected variable and the value contains the name of the user defined variable in the variable table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_possible_variable_type), | intent(in) | :: | possVars |
Possible variable names expected by the solver |
||
type(flu_State), | intent(in) | :: | conf |
lua config file |
||
integer, | intent(in), | optional | :: | parent |
optional parent handle |
|
character(len=*), | intent(in), | optional | :: | key |
optional key for the table |
|
type(grw_stringkeyvaluepairarray_type), | intent(inout) | :: | varDict |
The dictionary that contains the mapping between expected variables and the actual variables defined by the user. |
||
type(tem_varSys_type), | intent(inout) | :: | varSys |
Variable system to append anonymous variables to. |
Loads the variable mapping from a table for single expected name. A variable mapping is used to link a user defined variable to a variable expected from, e.g., an equation system. These mappings are stored in varDict, which basically is a dictionary, whereas the key contains the name of the expected variable and the value contains the name of the user defined variable in the variable table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | expectedName |
Expected variable name from config file |
||
type(flu_State), | intent(in) | :: | conf |
lua config file |
||
integer, | intent(in) | :: | thandle |
table handle |
||
type(grw_stringkeyvaluepairarray_type), | intent(inout) | :: | varDict |
The dictionary that contains the mapping between expected variables and the actual variables defined by the user. |
||
type(tem_varSys_type), | intent(inout) | :: | varSys |
Variable system to append anonymous variables to. |
||
integer, | intent(in), | optional | :: | nComp |
Number of components we expect for this variable. |
|
type(tem_varSys_solverData_evalElem_type), | intent(in), | optional | :: | solverData_evalElem |
Routine to convert point information into an element representation. |
|
integer, | intent(out), | optional | :: | ErrCode |
Error code |
Creates a variable map. Therefore it looks for the variables stored in varname in the varSys. If found, the name and the corresponding position in the varSys is added to the resultung varMap.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | varName(:) |
array of variable labels |
||
type(tem_varSys_type), | intent(in) | :: | varSys |
variable system to look for varName |
||
type(tem_varMap_type), | intent(out) | :: | varMap |
Contains position of varname in given varSys |