Changeset 413 in PSPA


Ignore:
Timestamp:
Mar 30, 2013, 3:05:50 PM (11 years ago)
Author:
lemeur
Message:

vérification (dataManager) de la consécution des sections

Location:
Interface_Web/trunk/pspaWT
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/History

    r412 r413  
    55     PSPA - Plateforme de simulation en physique des accélérateurs
    66     =========================================================
     7
     830 mars 2013 : Guy Le Meur
     9- Vérification algorithmique (dataManager) de la consécution des sections proposées au calcul.
     10- rétablissement, dans les diagnostics d'erreur, des noms génériques des éléments non autorisés par les logiciels : ce n'est pas spécialement cell01 qui est refusé par TRANSPORT, c'est l'élément GENERIQUE : CELL.
    711
    81229 Mars : Laurent Garnier
  • Interface_Web/trunk/pspaWT/sources/controler/include/sectionToExecute.h

    r401 r413  
    1313    /** Deprecated : To be removed ! */
    1414    sectionToExecute(abstractElement*, int, abstractElement*, int, abstractSoftware*);
     15
    1516    ~sectionToExecute() {;}
    1617
  • Interface_Web/trunk/pspaWT/sources/controler/src/dataManager.cc

    r407 r413  
    2929void dataManager::consoleMessage(string message) {
    3030    GWt_console* console = static_cast<GWt_console*> (wApp->findWidget ("console"));
    31     if (console) console->addConsoleMessage(message);
     31    if (console) console->addConsoleMessage(message + "\n");
    3232    pspa_->processEvents();
    3333}
     
    124124  abstractSoftware* softw = NULL;
    125125  string workingDir = pspa_->getWorkingDir();
    126  
     126  int debut;
     127  int fin;
     128  // on verifie la consecution des sections
     129  int lastel = 0;
    127130  for(unsigned k = 0; k < jobList_.size(); k++)
    128131    {
     132      if ( jobList_[k]->getElementNumberInSection() != lastel +1 ) {
     133        consoleMessage("dataManager::executeAll ERROR : sections should be consecutive ");
     134        return false;
     135      } else {
     136        lastel = jobList_[k]->getLastElementNumberInSection();
     137      }
     138    }
     139
     140  for(unsigned k = 0; k < jobList_.size(); k++)
     141    {
    129142      cout << " dataManager::executeAll je m'apprete a executer : " << (jobList_[k]->getSoftware()->getName()) << endl;
    130143     
    131       int debut = jobList_[k]->getElementNumberInSection();
    132       int fin = jobList_[k]->getLastElementNumberInSection();
     144      debut = jobList_[k]->getElementNumberInSection();
     145      fin = jobList_[k]->getLastElementNumberInSection();
    133146      softw = jobList_[k]->getSoftware();
    134147     
     
    145158          success = softw->buildBeamAfterElements(workingDir);
    146159        }
    147 //=======
    148 //        success = softw->execute(debut,fin,workingDir);
    149 //        if ( success ) {
    150 //          success = softw->buildBeamAfterElements(debut,fin,diagnosticBeam_,workingDir);
    151 //        }
    152 //>>>>>>> .merge-right.r400
    153160      }
    154161     
  • Interface_Web/trunk/pspaWT/sources/controler/src/softwareTransport.cc

    r387 r413  
    1818bool softwareTransport::createInputFile(particleBeam* beamBefore, unsigned int numeroDeb, unsigned int numeroFin, string workingDir)
    1919{
     20
     21
    2022
    2123  if ( !initComputationLimits(numeroDeb,numeroFin) ) return false;
     
    4446
    4547
    46   cout << "debug:: c'est quoi le premier element? " << premierEl->getNomdElement().getElementName() << endl;
     48  //  cout << "debug:: c'est quoi le premier element? " << premierEl->getNomdElement().getElementName() << endl;
    4749
    4850  // si le premier element a traiter est un 'beam', on ne fait rien pour l'instant
     
    5355    // s'il n'y a pas faisceau courant, erreur
    5456    if ( beamBefore == NULL ) {
    55       dataManager_->consoleMessage(" softwareTransport::createInputFile : no input beam");
     57      dataManager_->consoleMessage(" softwareTransport::createInputFile : no input beam, input file not created");
    5658      cout << " pas de faisceau " << endl;
    5759      return false;
  • Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_pspaApplication.cc

    r409 r413  
    425425  bibi->renew();
    426426 
    427   console_->addConsoleMessage(string("restauration terminee"));
     427  console_->addConsoleMessage(string("restauration terminee \n"));
    428428}
    429429
  • Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_softwarePanel.cc

    r412 r413  
    352352          trivaluedBool tb = pspa_->getBeamLine()->getAbstractElement(i)->setSoftware(prog.getString());
    353353          if (tb  == TBoolError ) {
    354             diagnosticErrors += pspa_->getBeamLine()->getAbstractElement(i)->getLabel() + " is not allowed with "+ prog.getString()+"<br /> ";
     354            // j'insiste pour remettre le nom generique de l'element refuse (glm / 30/03/2013)
     355            diagnosticErrors += pspa_->getBeamLine()->getAbstractElement(i)->getNomdElement().getElementName() + " is not allowed with "+ prog.getString()+"<br /> ";
    355356
    356357            caMarche = false;
Note: See TracChangeset for help on using the changeset viewer.