Changeset 413 in PSPA
- Timestamp:
- Mar 30, 2013, 3:05:50 PM (11 years ago)
- Location:
- Interface_Web/trunk/pspaWT
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/History
r412 r413 5 5 PSPA - Plateforme de simulation en physique des accélérateurs 6 6 ========================================================= 7 8 30 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. 7 11 8 12 29 Mars : Laurent Garnier -
Interface_Web/trunk/pspaWT/sources/controler/include/sectionToExecute.h
r401 r413 13 13 /** Deprecated : To be removed ! */ 14 14 sectionToExecute(abstractElement*, int, abstractElement*, int, abstractSoftware*); 15 15 16 ~sectionToExecute() {;} 16 17 -
Interface_Web/trunk/pspaWT/sources/controler/src/dataManager.cc
r407 r413 29 29 void dataManager::consoleMessage(string message) { 30 30 GWt_console* console = static_cast<GWt_console*> (wApp->findWidget ("console")); 31 if (console) console->addConsoleMessage(message );31 if (console) console->addConsoleMessage(message + "\n"); 32 32 pspa_->processEvents(); 33 33 } … … 124 124 abstractSoftware* softw = NULL; 125 125 string workingDir = pspa_->getWorkingDir(); 126 126 int debut; 127 int fin; 128 // on verifie la consecution des sections 129 int lastel = 0; 127 130 for(unsigned k = 0; k < jobList_.size(); k++) 128 131 { 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 { 129 142 cout << " dataManager::executeAll je m'apprete a executer : " << (jobList_[k]->getSoftware()->getName()) << endl; 130 143 131 intdebut = jobList_[k]->getElementNumberInSection();132 intfin = jobList_[k]->getLastElementNumberInSection();144 debut = jobList_[k]->getElementNumberInSection(); 145 fin = jobList_[k]->getLastElementNumberInSection(); 133 146 softw = jobList_[k]->getSoftware(); 134 147 … … 145 158 success = softw->buildBeamAfterElements(workingDir); 146 159 } 147 //=======148 // success = softw->execute(debut,fin,workingDir);149 // if ( success ) {150 // success = softw->buildBeamAfterElements(debut,fin,diagnosticBeam_,workingDir);151 // }152 //>>>>>>> .merge-right.r400153 160 } 154 161 -
Interface_Web/trunk/pspaWT/sources/controler/src/softwareTransport.cc
r387 r413 18 18 bool softwareTransport::createInputFile(particleBeam* beamBefore, unsigned int numeroDeb, unsigned int numeroFin, string workingDir) 19 19 { 20 21 20 22 21 23 if ( !initComputationLimits(numeroDeb,numeroFin) ) return false; … … 44 46 45 47 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; 47 49 48 50 // si le premier element a traiter est un 'beam', on ne fait rien pour l'instant … … 53 55 // s'il n'y a pas faisceau courant, erreur 54 56 if ( beamBefore == NULL ) { 55 dataManager_->consoleMessage(" softwareTransport::createInputFile : no input beam ");57 dataManager_->consoleMessage(" softwareTransport::createInputFile : no input beam, input file not created"); 56 58 cout << " pas de faisceau " << endl; 57 59 return false; -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_pspaApplication.cc
r409 r413 425 425 bibi->renew(); 426 426 427 console_->addConsoleMessage(string("restauration terminee "));427 console_->addConsoleMessage(string("restauration terminee \n")); 428 428 } 429 429 -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_softwarePanel.cc
r412 r413 352 352 trivaluedBool tb = pspa_->getBeamLine()->getAbstractElement(i)->setSoftware(prog.getString()); 353 353 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 /> "; 355 356 356 357 caMarche = false;
Note: See TracChangeset
for help on using the changeset viewer.