Changeset 472 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/src/dataManager.cc
- Timestamp:
- Dec 19, 2013, 6:22:39 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/src/dataManager.cc
r469 r472 18 18 19 19 dataManager::dataManager(PspaApplication* pspa) : 20 currentBeam_(NULL),21 20 pspa_ (pspa) 22 21 {} … … 28 27 if ( jobList_[k] != NULL ) delete jobList_[k]; 29 28 } 30 if ( currentBeam_ == NULL ) delete currentBeam_;31 29 } 32 30 … … 82 80 diagnosticBeam_.clear(); 83 81 indexElementToIndexDiag_.clear(); 84 currentBeam_ = NULL;85 82 for (unsigned int a=0; a< jobList_.size(); a++) { 86 83 jobList_[a]->clearSectionToExecute(); … … 130 127 } 131 128 132 success = softw->createInputFile( currentBeam_,workingDir);129 success = softw->createInputFile(sector->getParticleBeam(),workingDir); 133 130 if ( success ) { 134 131 success = softw->execute(workingDir); … … 139 136 140 137 if ( success ) { 141 currentBeam_ = &diagnosticBeam_.at(indexElementToIndexDiag_.back());138 sector->setParticleBeam(&diagnosticBeam_.at(indexElementToIndexDiag_.back())); 142 139 cout << " execute termine avec succes " << endl; 143 140 } else { 144 currentBeam_ = NULL;141 sector->setParticleBeam(NULL); 145 142 cout << " execute termine en ECHEC " << endl; 146 143 } … … 157 154 } //l 158 155 } //k 159 // if ( currentBeam_ ) {156 // if ( currentBeam_deprecated_ ) { 160 157 // string aml_file = workingDir + "/" + "faisceau_final" + ".aml"; 161 // currentBeam_ ->writeToAMLFile(aml_file);158 // currentBeam_deprecated_->writeToAMLFile(aml_file); 162 159 // // TESTS 163 // currentBeam_ ->readFromAMLFile(aml_file);160 // currentBeam_deprecated_->readFromAMLFile(aml_file); 164 161 // } 165 162 cout << " dataManager::executeAll() " << endl;
Note: See TracChangeset
for help on using the changeset viewer.