Ignore:
Timestamp:
11/15/17 12:14:34 (6 years ago)
Author:
yushan
Message:

dev_omp

File:
1 edited

Legend:

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

    r1287 r1328  
    44 
    55#include <boost/algorithm/string.hpp> 
    6 // mpi_std.hpp 
    7 #ifdef _usingEP 
    8 #include "ep_declaration.hpp" 
    9 #endif 
    106 
    117namespace xios 
    128{ 
    13   CINetCDF4::CINetCDF4(const StdString& filename, const MPI_Comm* comm /*= NULL*/, bool multifile /*= true*/, const StdString& timeCounterName /*= "time_counter"*/) 
     9  CINetCDF4::CINetCDF4(const StdString& filename, const ep_lib::MPI_Comm* comm /*= NULL*/, bool multifile /*= true*/, const StdString& timeCounterName /*= "time_counter"*/) 
    1410  { 
    1511    // Don't use parallel mode if there is only one process 
     
    1713    { 
    1814      int commSize = 0; 
    19       MPI_Comm_size(*comm, &commSize); 
     15      ep_lib::MPI_Comm_size(*comm, &commSize); 
    2016      if (commSize <= 1) 
    2117        comm = NULL; 
    2218    } 
    23  
    2419    mpi = comm && !multifile; 
    25     MPI_Info m_info = MPI_INFO_NULL.mpi_info; 
     20    ep_lib::MPI_Info info_null; 
    2621 
    2722    // The file format will be detected automatically by NetCDF, it is safe to always set NC_MPIIO 
    2823    // even if Parallel NetCDF ends up being used. 
    2924    if (mpi) 
    30       CNetCdfInterface::openPar(filename, NC_NOWRITE | NC_MPIIO, *comm, m_info, this->ncidp); 
     25      //CNetCdfInterface::openPar(filename, NC_NOWRITE | NC_MPIIO, *comm, info_null, this->ncidp); 
     26      CNetCdfInterface::openPar(filename, NC_NOWRITE | NC_MPIIO, static_cast<MPI_Comm>(comm->mpi_comm), info_null.mpi_info, this->ncidp); 
    3127    else 
    3228      CNetCdfInterface::open(filename, NC_NOWRITE, this->ncidp); 
Note: See TracChangeset for help on using the changeset viewer.