get_subblock_index Interface

public interface get_subblock_index

Contents


Module Procedures

private function transform_state_variable_to_subblock_index(variables, state_vector, dim_subblock, odd, edge) result(idxs)

Transforms a given array of state variables to subblock indices. If odd is .true. returns the odd indices, otherwise the even indices. If edge equals "left", returns the indices corresponding to the left boundary block, if edge equals "right" returns indices for the right boundary block.

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: variables(:)

array of state vector variable names

character(len=*), intent(in) :: state_vector(:)

state vector to consider

integer, intent(in) :: dim_subblock

dimension of the subblock

logical, intent(in) :: odd

uses odd indices if .true. and even if .false.

character(len=*), intent(in) :: edge

which edge to consider, "left" for left boundary and "right" for right one

Return Value integer,allocatable, (:)

integer array containing the corresponding subblock indices