io_decomp_patch_to_x_y_patch Function

public function io_decomp_patch_to_x_y_patch(land_x, land_y, cstart, nap, mem_shape_spec, var_shape_spec, type) result(decomp)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: land_x(:)
integer, intent(in) :: land_y(:)
integer, intent(in) :: cstart(:)

These are required to (a) get the land index of each patch index, and (b) get the patch offset value relative to cstart

integer, intent(in) :: nap(:)

These are required to (a) get the land index of each patch index, and (b) get the patch offset value relative to cstart

type(dim_spec_t), intent(in) :: mem_shape_spec(:)
type(dim_spec_t), intent(in) :: var_shape_spec(:)
integer, intent(in) :: type

Return Value class(cable_netcdf_decomp_t), allocatable