Assign reference to spacetime functions to the affected elements. This means: The position of the variable in the variable system, which reflects the spacetime function is determined and assigned to the element_list.
This assignment is done as follows: 1. Set each fluid element's spacetime function pointer to null 2. Iterate over all material variables 2.1 Iterate over the first input variable's spacetime function list 2.1.a If it is a global shape spacetime function, have all element's material stfun pointer set to this spacetime function. 2.1.b Take the spacetime function subtree and assign this spacetime function to all element's material stfun pointer in this subtree. 2.2 Iterate over all elements and check whether their stfun pointer is associated, which means, that the material is defined for the element.
If there is one or more elements that are not covered by all materials, the solver will abort.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(treelmesh_type), | intent(in) | :: | tree | The global description of the tree. |
||
type(atl_cube_elem_type), | intent(in) | :: | mesh_list(tree%global%minlevel:tree%global%maxlevel) | List of mesh for different kernels |
||
type(atl_material_type), | intent(inout) | :: | affection_list(tree%global%minlevel:tree%global%maxlevel) | The description of the material properties on the element basis. |
||
integer, | intent(in) | :: | levelPointer(:) | |||
type(tem_varSys_type), | intent(in) | :: | varSys | global variable system to which luaVar to be appended |
||
type(atl_materialFun_type), | intent(in) | :: | materialFun | The list of material variable indizes. |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | private | :: | nfluids | ||||
integer, | private | :: | elemPos | ||||
integer, | private | :: | levelElemPos | ||||
integer, | private | :: | iLevel | ||||
integer, | private | :: | iMat | ||||
integer, | private | :: | iElem | ||||
integer, | private | :: | iStFun | ||||
integer, | private | :: | varPos | ||||
integer, | private | :: | inputVarPos | ||||
type(tem_st_fun_listElem_type), | private, | pointer | :: | stFunList | |||
logical, | private | :: | allElemsDefined |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(atl_material_type), | intent(inout) | :: | affection_list(tree%global%minlevel:tree%global%maxlevel) | |||
type(tem_st_fun_listElem_type), | pointer | :: | stFunList | |||
integer | :: | iLevel | ||||
integer | :: | iMat | ||||
integer | :: | iStFun | ||||
integer | :: | levelElemPos | ||||
integer | :: | inputVarPos |