Ignore:
Timestamp:
09/21/11 09:42:30 (13 years ago)
Author:
hozdoba
Message:

Corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_V2/dev/common/src/xmlio/data_treatment.hpp

    r274 r278  
    4747 
    4848            /// Création des sorties /// 
    49             template <class T> void createDataOutput(void); 
     49            template <class T> void createDataOutput(comm::MPIComm comm_server = CXIOSManager::Comm_Server); 
    5050 
    5151            /// Destructeur /// 
     
    7272 
    7373      template <class T> 
    74          void CDataTreatment::createDataOutput(void) 
     74         void CDataTreatment::createDataOutput(comm::MPIComm comm_server ) 
    7575      { 
    7676         std::vector<boost::shared_ptr<CFile> >::const_iterator 
     
    7979         for (; it != end; it++) 
    8080         { 
     81            CXIOSManager::Comm_Server = comm_server; 
    8182            boost::shared_ptr<CFile> file = *it; 
    8283            StdString filename = (!file->name.isEmpty()) 
     
    8990            if (!file->name_suffix.isEmpty()) 
    9091                oss << file->name_suffix.getValue(); 
    91             if (comm::CMPIManager::GetCommSize() > 1) 
    92                 oss << "_node" << comm::CMPIManager::GetCommRank(); 
    93             oss << ".nc"; 
     92            if (comm::CMPIManager::GetCommSize(comm_server) > 1) 
     93                     oss << "." << comm::CMPIManager::GetCommRank(comm_server); 
     94                 oss << ".nc"; 
    9495            boost::shared_ptr<io::CDataOutput> dout(new T(oss.str(), false)); 
    9596            file->initializeDataOutput(dout); 
Note: See TracChangeset for help on using the changeset viewer.