Changeset 1153 for XIOS/dev/branch_yushan_merged/src/io/netCdfInterface.cpp
- Timestamp:
- 06/02/17 17:53:25 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan_merged/src/io/netCdfInterface.cpp
r1149 r1153 75 75 int CNetCdfInterface::open(const StdString& fileName, int oMode, int& ncId) 76 76 { 77 int status = nc_open(fileName.c_str(), oMode, &ncId); 77 int status = NC_NOERR; 78 #pragma omp critical (_netcdf) 79 status = nc_open(fileName.c_str(), oMode, &ncId); 80 78 81 if (NC_NOERR != status) 79 82 { … … 105 108 int status; 106 109 #pragma omp critical (_netcdf) 107 status = xios::nc_open_par(fileName.c_str(), oMode, comm, info, &ncId); 110 status = xios::nc_open_par(fileName.c_str(), oMode, comm, info, &ncId); // nc_open 108 111 if (NC_NOERR != status) 109 112 { … … 129 132 { 130 133 int status = NC_NOERR; 131 //#pragma omp critical (_netcdf)132 #pragma omp master134 #pragma omp critical (_netcdf) 135 //#pragma omp master 133 136 { 134 137 status = nc_close(ncId);
Note: See TracChangeset
for help on using the changeset viewer.