Changeset 1146 for XIOS/dev/branch_yushan_merged/src/io
- Timestamp:
- 05/24/17 16:59:40 (7 years ago)
- Location:
- XIOS/dev/branch_yushan_merged/src/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan_merged/src/io/netCdfInterface.cpp
r1138 r1146 103 103 int CNetCdfInterface::openPar(const StdString& fileName, int oMode, MPI_Comm comm, MPI_Info info, int& ncId) 104 104 { 105 int status = xios::nc_open_par(fileName.c_str(), oMode, comm, info, &ncId); 105 int status; 106 #pragma omp critical (_netcdf) 107 status = xios::nc_open_par(fileName.c_str(), oMode, comm, info, &ncId); 106 108 if (NC_NOERR != status) 107 109 { … … 347 349 int CNetCdfInterface::inqDimLen(int ncid, int dimId, StdSize& dimLen) 348 350 { 349 int status = nc_inq_dimlen(ncid, dimId, &dimLen); 351 int status; 352 #pragma omp critical (_netcdf) 353 status = nc_inq_dimlen(ncid, dimId, &dimLen); 350 354 if (NC_NOERR != status) 351 355 { -
XIOS/dev/branch_yushan_merged/src/io/netCdfInterface_impl.hpp
r1138 r1146 86 86 int CNetCdfInterface::getVaraType(int ncid, int varId, const StdSize* start, const StdSize* count, T* data) 87 87 { 88 int status = ncGetVaraType(ncid, varId, start, count, data); 88 int status; 89 #pragma omp critical (_netcdf) 90 status = ncGetVaraType(ncid, varId, start, count, data); 89 91 if (NC_NOERR != status) 90 92 {
Note: See TracChangeset
for help on using the changeset viewer.