atl_fill_sourceIndex Subroutine

public subroutine atl_fill_sourceIndex(source, varSys, nDim, tree, poly_proj_list, mesh_list)

Create source elements list for given source variable

This routine was taken from musubi's mus_source_module. This was necessary, because we can't move the routine to treelm and work with type extensions, as there are differences between atl_source_elems_type and mus_source_elems_type, which prevents us from using a shared and extendable tem_source_op_type.

If this routine is changed, please also keep the coresponding routine in mus_source_module up to date.

Arguments

Type IntentOptional Attributes Name
type(atl_source_type), intent(inout) :: source

Instance of atl_source_type to be initialized. This instance will contain the source definitions from lua as well as the corresponding variables in the global variable system.

type(tem_varSys_type), intent(in) :: varSys

global variable system

integer, intent(in) :: nDim

equation nDimensions

type(treelmesh_type), intent(in) :: tree

global treelm mesh

type(ply_poly_project_type), intent(in), target :: poly_proj_list(:)

unique list for projection methods

type(atl_cube_elem_type), intent(in) :: mesh_list(tree%global%minLevel:)

Mesh list to access the level descriptors