Parallel-NetCDF / PnetCDF

Source code repository of PnetCDF library and utilities
https://parallel-netcdf.github.io
Other
83 stars 23 forks source link

support Fortran flexible APIs for bufcount = -1 #82

Closed wkliao closed 2 years ago

wkliao commented 2 years ago

When argument bufcount == -1, buftype should be one of MPI predefined data type that describes the I/O buffer. For example,

integer*8 bufcount
integer buf(100, 100)
...
bufcount = -1
nfmpi_put_vara_all(ncid, varid, start, count, buf, bufcount, MPI_INTEGER)

is equivalent to

nfmpi_put_vara_int_all(ncid, varid, start, count, buf)

In this case, the I/O buffer, buf, should be of Fortran type integer.