Ignore:
Timestamp:
Dec 19, 2013, 6:22:39 PM (11 years ago)
Author:
garnier
Message:

Modification pour remettre en marche le Run. Desormais Transport passe, mais aucun test ne permet de dire si c est bon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/sources/controler/src/dataManager.cc

    r469 r472  
    1818
    1919dataManager::dataManager(PspaApplication* pspa) :
    20 currentBeam_(NULL),
    2120pspa_ (pspa)
    2221{}
     
    2827    if ( jobList_[k] != NULL ) delete jobList_[k];
    2928  }
    30   if ( currentBeam_ == NULL ) delete currentBeam_;
    3129}
    3230
     
    8280  diagnosticBeam_.clear();
    8381  indexElementToIndexDiag_.clear();
    84   currentBeam_ = NULL;
    8582  for (unsigned int a=0; a< jobList_.size(); a++) {
    8683      jobList_[a]->clearSectionToExecute();
     
    130127    }
    131128   
    132     success = softw->createInputFile(currentBeam_,workingDir);
     129    success = softw->createInputFile(sector->getParticleBeam(),workingDir);
    133130    if ( success ) {
    134131      success = softw->execute(workingDir);
     
    139136   
    140137    if ( success ) {
    141       currentBeam_ = &diagnosticBeam_.at(indexElementToIndexDiag_.back());
     138      sector->setParticleBeam(&diagnosticBeam_.at(indexElementToIndexDiag_.back()));
    142139      cout << " execute termine avec succes " << endl;
    143140    } else {
    144       currentBeam_ = NULL;
     141      sector->setParticleBeam(NULL);
    145142      cout << " execute termine en ECHEC " << endl;
    146143    }
     
    157154    } //l
    158155  } //k
    159   // if ( currentBeam_ ) {
     156  // if ( currentBeam_deprecated_ ) {
    160157  // string aml_file = workingDir + "/" + "faisceau_final" + ".aml";
    161   //   currentBeam_->writeToAMLFile(aml_file);
     158  //   currentBeam_deprecated_->writeToAMLFile(aml_file);
    162159  //   // TESTS
    163   //   currentBeam_->readFromAMLFile(aml_file);
     160  //   currentBeam_deprecated_->readFromAMLFile(aml_file);
    164161  // }
    165162  cout << " dataManager::executeAll() " << endl;
Note: See TracChangeset for help on using the changeset viewer.