Module containing subroutines for building MUSUBI specific transport variables to use in compute kernels and source update
Description of musubi transport variable type
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(mus_transport_op_type), | private, | allocatable | :: | method(:) | Contains variable pntIndex to setup_index and getValOfIndex Size: varDict%nVals |
||
type(grw_stringkeyvaluepairarray_type), | private | :: | varDict | Dictionary of transport variable with varDict%val()%key is the name of transport variable and varDict%val()%value is the name of variable provided for the key |
Description contains index to access value using variable function pointer
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | private | :: | data_varpos | Position of data variable provided in config file in the varSys |
|||
type(tem_indexLvl_type), | private | :: | pntIndex | Indices for points for nElems_solve (nFluids + nGhostsFromCoarser). Order of index matches levelDesc%total list, required for setup_index, getvalof_Index |
Routine initialize possible transport variable depends on scheme kind
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_possible_variable_type), | intent(out) | :: | poss_transVar | possible transport variables |
||
type(mus_scheme_header_type), | intent(in) | :: | schemeHeader | Identifier of the scheme |
Routine load musubi transport variables
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(mus_transport_var_type), | intent(out) | :: | me | transport variable type to initialize |
||
type(tem_possible_variable_type), | intent(in) | :: | possVars | possible transport variables |
||
type(flu_State) | :: | conf | flu state |
|||
integer, | intent(in), | optional | :: | parent | parent handle if scheme table is defined |
|
type(tem_varSys_type), | intent(inout) | :: | varSys | Global variable system |
||
type(mus_scheme_header_type), | intent(in) | :: | schemeHeader | Identifier of the scheme |
Initialize transport variable by calling setupIndices for every variable and store pntIndex
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(mus_transport_var_type), | intent(inout) | :: | me | transport variable to fill in |
||
type(tem_varSys_type), | intent(in) | :: | varSys | global variable system |
||
type(treelmesh_type), | intent(in) | :: | tree | global treelm mesh |
||
integer, | intent(in) | :: | nElems_solve(tree%global%minLevel:) | Number of elements to solve in all levels nFluids + nGhosts |
||
type(tem_levelDesc_type), | intent(in) | :: | levelDesc(tree%global%minLevel:) | Level descriptors |