Ignore:
Timestamp:
06/02/17 17:53:25 (7 years ago)
Author:
yushan
Message:

save modif

File:
1 edited

Legend:

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

    r1149 r1153  
    7575int CNetCdfInterface::open(const StdString& fileName, int oMode, int& ncId) 
    7676{ 
    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   
    7881  if (NC_NOERR != status) 
    7982  { 
     
    105108  int status; 
    106109  #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 
    108111  if (NC_NOERR != status) 
    109112  { 
     
    129132{ 
    130133  int status = NC_NOERR; 
    131   //#pragma omp critical (_netcdf) 
    132   #pragma omp master 
     134  #pragma omp critical (_netcdf) 
     135  //#pragma omp master 
    133136  { 
    134137  status = nc_close(ncId); 
Note: See TracChangeset for help on using the changeset viewer.