array_offset Function

public function array_offset(index, shape) result(offset)

Calculate the memory offset corresponding to a given index in a multi-dimensional array.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: index(:)

The multi-dimensional index for which to calculate the offset.

integer, intent(in) :: shape(:)

The shape of the multi-dimensional array.

Return Value integer

The calculated memory offset corresponding to the given index.


Called by

proc~~array_offset~~CalledByGraph proc~array_offset array_offset proc~io_decomp_land_to_land io_decomp_land_to_land proc~io_decomp_land_to_land->proc~array_offset proc~io_decomp_land_to_x_y io_decomp_land_to_x_y proc~io_decomp_land_to_x_y->proc~array_offset proc~io_decomp_patch_to_land_patch io_decomp_patch_to_land_patch proc~io_decomp_patch_to_land_patch->proc~array_offset proc~io_decomp_patch_to_patch io_decomp_patch_to_patch proc~io_decomp_patch_to_patch->proc~array_offset proc~io_decomp_patch_to_x_y_patch io_decomp_patch_to_x_y_patch proc~io_decomp_patch_to_x_y_patch->proc~array_offset