Ignore:
Timestamp:
11/20/17 09:49:26 (6 years ago)
Author:
yushan
Message:

omp_dev

File:
1 edited

Legend:

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

    r1328 r1334  
    102102int CNetCdfInterface::openPar(const StdString& fileName, int oMode, MPI_Comm comm, MPI_Info info, int& ncId) 
    103103{ 
    104   //int status = xios::nc_open_par(fileName.c_str(), oMode, comm, info, &ncId); 
    105   int status = xios::nc_open_par(fileName.c_str(), oMode, comm, MPI_INFO_NULL.mpi_info, &ncId); 
     104  int status; 
     105  #pragma omp critical (_netcdf) 
     106  status = xios::nc_open_par(fileName.c_str(), oMode, comm, MPI_INFO_NULL.mpi_info, &ncId); 
     107   
    106108  if (NC_NOERR != status) 
    107109  { 
Note: See TracChangeset for help on using the changeset viewer.