Writing in Stride Mode
Function Syntax
- Write data of any type collectively in stride mode.
int ncmpi_put_vars_all(int fileId, int variableId, const MPI_Offset* start, const MPI_Offset* count, const MPI_Offset* stride, const void *data, MPI_Offset bufCount, MPI_Datatype bufType)
- Write data of the double type collectively in stride mode.
int ncmpi_put_vars_double_all(int fileId, int variableId, const MPI_Offset* start, const MPI_Offset* count, const MPI_Offset* stride, const double *data)
Parameters
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
fileId |
File ID |
Non-negative integer |
Input |
variableId |
Variable ID |
Non-negative integer |
Input |
*start |
Offset of the write start position |
Non-empty |
Input |
*count |
Write size |
Non-empty |
Input |
*stride |
Stride size |
Non-empty |
Input |
*data |
Pointer to the data to write |
Non-empty |
Input |
bufCount |
Size of the data to write |
Non-negative integer |
Input |
bufType |
Write type |
Non-empty |
Input |
Return Value
- Success: NC_NOERR
- Failure: An error code is returned.
Error Code
Error Code |
Description |
|---|---|
NC_EBADID |
Invalid ncid |
NC_ENOTINDEP |
Independent I/O operation attempted in collective mode |
NC_EINVALCOORDS |
Specified index exceeding the rank range of the specified variable |
NC_ENOTVAR |
Invalid variable ID |