Ignore:
Timestamp:
05/24/17 16:59:40 (7 years ago)
Author:
yushan
Message:

save modif

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan_merged/src/io/netCdfInterface.cpp

    r1138 r1146  
    103103int CNetCdfInterface::openPar(const StdString& fileName, int oMode, MPI_Comm comm, MPI_Info info, int& ncId) 
    104104{ 
    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); 
    106108  if (NC_NOERR != status) 
    107109  { 
     
    347349int CNetCdfInterface::inqDimLen(int ncid, int dimId, StdSize& dimLen) 
    348350{ 
    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); 
    350354  if (NC_NOERR != status) 
    351355  { 
Note: See TracChangeset for help on using the changeset viewer.