array_index Subroutine

public subroutine array_index(offset_in, shape, index)

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

Arguments

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

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

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

The shape of the multi-dimensional array.

integer, intent(inout) :: index(:)

The calculated multi-dimensional index corresponding to the given offset.


Called by

proc~~array_index~~CalledByGraph proc~array_index array_index proc~cable_netcdf_nf90_file_read_darray_int32_2d cable_netcdf_nf90_file_t%cable_netcdf_nf90_file_read_darray_int32_2d proc~cable_netcdf_nf90_file_read_darray_int32_2d->proc~array_index proc~cable_netcdf_nf90_file_read_darray_int32_3d cable_netcdf_nf90_file_t%cable_netcdf_nf90_file_read_darray_int32_3d proc~cable_netcdf_nf90_file_read_darray_int32_3d->proc~array_index proc~cable_netcdf_nf90_file_read_darray_real32_2d cable_netcdf_nf90_file_t%cable_netcdf_nf90_file_read_darray_real32_2d proc~cable_netcdf_nf90_file_read_darray_real32_2d->proc~array_index proc~cable_netcdf_nf90_file_read_darray_real32_3d cable_netcdf_nf90_file_t%cable_netcdf_nf90_file_read_darray_real32_3d proc~cable_netcdf_nf90_file_read_darray_real32_3d->proc~array_index proc~cable_netcdf_nf90_file_read_darray_real64_2d cable_netcdf_nf90_file_t%cable_netcdf_nf90_file_read_darray_real64_2d proc~cable_netcdf_nf90_file_read_darray_real64_2d->proc~array_index proc~cable_netcdf_nf90_file_read_darray_real64_3d cable_netcdf_nf90_file_t%cable_netcdf_nf90_file_read_darray_real64_3d proc~cable_netcdf_nf90_file_read_darray_real64_3d->proc~array_index proc~cable_netcdf_nf90_file_write_darray_int32_2d cable_netcdf_nf90_file_t%cable_netcdf_nf90_file_write_darray_int32_2d proc~cable_netcdf_nf90_file_write_darray_int32_2d->proc~array_index proc~cable_netcdf_nf90_file_write_darray_int32_3d cable_netcdf_nf90_file_t%cable_netcdf_nf90_file_write_darray_int32_3d proc~cable_netcdf_nf90_file_write_darray_int32_3d->proc~array_index proc~cable_netcdf_nf90_file_write_darray_real32_2d cable_netcdf_nf90_file_t%cable_netcdf_nf90_file_write_darray_real32_2d proc~cable_netcdf_nf90_file_write_darray_real32_2d->proc~array_index proc~cable_netcdf_nf90_file_write_darray_real32_3d cable_netcdf_nf90_file_t%cable_netcdf_nf90_file_write_darray_real32_3d proc~cable_netcdf_nf90_file_write_darray_real32_3d->proc~array_index proc~cable_netcdf_nf90_file_write_darray_real64_2d cable_netcdf_nf90_file_t%cable_netcdf_nf90_file_write_darray_real64_2d proc~cable_netcdf_nf90_file_write_darray_real64_2d->proc~array_index proc~cable_netcdf_nf90_file_write_darray_real64_3d cable_netcdf_nf90_file_t%cable_netcdf_nf90_file_write_darray_real64_3d proc~cable_netcdf_nf90_file_write_darray_real64_3d->proc~array_index proc~io_decomp_land_to_land io_decomp_land_to_land proc~io_decomp_land_to_land->proc~array_index proc~io_decomp_land_to_x_y io_decomp_land_to_x_y proc~io_decomp_land_to_x_y->proc~array_index proc~io_decomp_patch_to_land_patch io_decomp_patch_to_land_patch proc~io_decomp_patch_to_land_patch->proc~array_index proc~io_decomp_patch_to_patch io_decomp_patch_to_patch proc~io_decomp_patch_to_patch->proc~array_index 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_index