Changeset 1146 for XIOS/dev/branch_yushan_merged/src/io/netCdfInterface.cpp
- Timestamp:
- 05/24/17 16:59:40 (7 years ago)
- File:
-
- 1 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 {
Note: See TracChangeset
for help on using the changeset viewer.