cable_netcdf_create_decomp Function

public function cable_netcdf_create_decomp(compmap, dims, type) result(decomp)

Create a new decomposition for parallel I/O. This follows the degree of freedom approach for specifying I/O decompositions as described in Denis et al. (2011) [10.1177/1094342011428143].

Arguments

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

An array of data offsets describing where each element of the in-memory array is located in the netCDF variable data on disk.

integer, intent(in) :: dims(:)

An array of the global dimensions used to describe the shape of the data in the netCDF file

integer, intent(in) :: type

The data type of the in-memory array using the CABLE_NETCDF_TYPE_* constants.

Return Value class(cable_netcdf_decomp_t), allocatable