Changeset 278 for XMLIO_V2/dev/common/src/xmlio/data_treatment.hpp
- Timestamp:
- 09/21/11 09:42:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/common/src/xmlio/data_treatment.hpp
r274 r278 47 47 48 48 /// Création des sorties /// 49 template <class T> void createDataOutput( void);49 template <class T> void createDataOutput(comm::MPIComm comm_server = CXIOSManager::Comm_Server); 50 50 51 51 /// Destructeur /// … … 72 72 73 73 template <class T> 74 void CDataTreatment::createDataOutput( void)74 void CDataTreatment::createDataOutput(comm::MPIComm comm_server ) 75 75 { 76 76 std::vector<boost::shared_ptr<CFile> >::const_iterator … … 79 79 for (; it != end; it++) 80 80 { 81 CXIOSManager::Comm_Server = comm_server; 81 82 boost::shared_ptr<CFile> file = *it; 82 83 StdString filename = (!file->name.isEmpty()) … … 89 90 if (!file->name_suffix.isEmpty()) 90 91 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"; 94 95 boost::shared_ptr<io::CDataOutput> dout(new T(oss.str(), false)); 95 96 file->initializeDataOutput(dout);
Note: See TracChangeset
for help on using the changeset viewer.