Rate This Document
Findability
Accuracy
Completeness
Readability

Reading in Array Mode

Function Syntax

Read data of any type in array mode.

int ncmpi_get_vara_all(int fileId, int variableId, const MPI_Offset* start, const MPI_Offset* count, void *data, MPI_Offset bufcount, MPI_Datatype bufType)

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 read start position

Non-empty

Input

*count

Read size

Non-empty

Input

*data

Pointer to the data to read

Non-empty

Output

bufcount

Pointer to the size of the data to read

Non-negative integer

Output

bufType

Pointer to the type of the data to read

Non-empty

Output

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