Ignore:
Timestamp:
05/16/17 17:54:30 (7 years ago)
Author:
yushan
Message:

branch merged with trunk r1130

File:
1 edited

Legend:

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

    r1097 r1134  
    33#include "onetcdf4.hpp" 
    44#include "group_template.hpp" 
    5 #include "mpi.hpp" 
    65#include "netcdf.hpp" 
    76#include "netCdfInterface.hpp" 
     
    1211      /// ////////////////////// Définitions ////////////////////// /// 
    1312 
    14       CONetCDF4::CONetCDF4(const StdString& filename, bool append, bool useClassicFormat, 
    15                                                         bool useCFConvention, 
    16                            const MPI_Comm* comm, bool multifile, const StdString& timeCounterName) 
     13      CONetCDF4::CONetCDF4(const StdString& filename, bool append, bool useClassicFormat, bool useCFConvention,  
     14                           const ep_lib::MPI_Comm* comm, bool multifile, const StdString& timeCounterName) 
    1715        : path() 
    1816        , wmpi(false) 
     
    3230 
    3331      void CONetCDF4::initialize(const StdString& filename, bool append, bool useClassicFormat, bool useCFConvention,  
    34                                  const MPI_Comm* comm, bool multifile, const StdString& timeCounterName) 
     32                                 const ep_lib::MPI_Comm* comm, bool multifile, const StdString& timeCounterName) 
    3533      { 
    3634         this->useClassicFormat = useClassicFormat; 
     
    5654         { 
    5755            if (wmpi) 
    58                CNetCdfInterface::createPar(filename, mode, *comm, MPI_INFO_NULL, this->ncidp); 
     56               CNetCdfInterface::createPar(filename, mode, static_cast<MPI_Comm>(comm->mpi_comm), MPI_INFO_NULL_STD, this->ncidp);            
    5957            else 
    6058               CNetCdfInterface::create(filename, mode, this->ncidp); 
     
    6664            mode |= NC_WRITE; 
    6765            if (wmpi) 
    68                CNetCdfInterface::openPar(filename, mode, *comm, MPI_INFO_NULL, this->ncidp); 
     66               CNetCdfInterface::openPar(filename, mode, static_cast<MPI_Comm>(comm->mpi_comm), MPI_INFO_NULL_STD, this->ncidp); 
    6967            else 
    7068               CNetCdfInterface::open(filename, mode, this->ncidp); 
     
    535533                                 const std::vector<StdSize>& scount, const int* data) 
    536534      { 
    537           CNetCdfInterface::putVaraType(grpid, varid, &sstart[0], &scount[0], data); 
    538       } 
     535         CNetCdfInterface::putVaraType(grpid, varid, &sstart[0], &scount[0], data); 
     536      } 
     537 
    539538      //--------------------------------------------------------------- 
    540539 
     
    544543                                 const std::vector<StdSize>& scount, const float* data) 
    545544      { 
    546           CNetCdfInterface::putVaraType(grpid, varid, &sstart[0], &scount[0], data); 
     545         CNetCdfInterface::putVaraType(grpid, varid, &sstart[0], &scount[0], data); 
    547546      } 
    548547 
Note: See TracChangeset for help on using the changeset viewer.