Changeset 111 in PSPA for Interface_Web/trunk/pspaWT/src/particleBeam.cc
- Timestamp:
- Nov 27, 2012, 6:45:29 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/src/particleBeam.cc
r105 r111 8 8 9 9 10 voidparticleBeam::setFromParmela(double referencefrequency)10 bool particleBeam::setFromParmela(double referencefrequency) 11 11 { 12 12 unsigned int k; … … 19 19 { 20 20 cerr << " particleBeam::setFromParmela() erreur a l'ouverture du fichier" << nomfilefais << endl;; 21 exit(0);21 return false; 22 22 } 23 23 else cout << " particleBeam::setFromParmela() : ouverture du fichier " << nomfilefais << endl; … … 98 98 } 99 99 particleRepresentationOk_ = true; 100 buildMomentRepresentation(); 100 // buildMomentRepresentation(); 101 return true; 101 102 } 102 103 … … 304 305 } 305 306 306 voidparticleBeam::setFromTransport(ifstream& inp, unsigned nblignes)307 bool particleBeam::setFromTransport(ifstream& inp, unsigned nblignes) 307 308 { 308 309 unsigned k; … … 352 353 353 354 momentRepresentationOk_ = true; 355 return true; 354 356 } 355 357 … … 370 372 double alpha = -r / rac; 371 373 double beta = xm / ( ym * rac); 372 double gamma = ym / ( xm * rac );374 // double gamma = ym / ( xm * rac ); 373 375 double epsil = xm * ym * rac; 374 376 … … 399 401 } 400 402 401 for ( k=0; k < nbintv; k++)403 for ( k=0; k <= nbintv; k++) 402 404 { 403 405 x = xm - k*pas;
Note: See TracChangeset
for help on using the changeset viewer.