Ignore:
Timestamp:
Nov 27, 2012, 6:45:29 PM (12 years ago)
Author:
lemeur
Message:

tests de bonne execution de parmela

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/src/particleBeam.cc

    r105 r111  
    88
    99
    10 void particleBeam::setFromParmela(double referencefrequency)
     10bool particleBeam::setFromParmela(double referencefrequency)
    1111{
    1212  unsigned int k;
     
    1919    {
    2020      cerr << " particleBeam::setFromParmela() erreur a l'ouverture du fichier" << nomfilefais  << endl;;
    21       exit(0);
     21      return false;
    2222    }
    2323  else cout << " particleBeam::setFromParmela() : ouverture du fichier " << nomfilefais << endl;
     
    9898    }
    9999  particleRepresentationOk_ = true;
    100   buildMomentRepresentation();
     100  //  buildMomentRepresentation();
     101  return true;
    101102}
    102103
     
    304305}
    305306
    306 void  particleBeam::setFromTransport(ifstream& inp, unsigned nblignes)
     307bool  particleBeam::setFromTransport(ifstream& inp, unsigned nblignes)
    307308  {
    308309    unsigned k;
     
    352353
    353354     momentRepresentationOk_ = true;
     355     return true;
    354356  }
    355357
     
    370372  double alpha = -r / rac;
    371373  double beta = xm / ( ym * rac);
    372   double gamma = ym / ( xm * rac );
     374  //  double gamma = ym / ( xm * rac );
    373375  double epsil = xm * ym * rac;
    374376
     
    399401    }
    400402
    401   for ( k=0; k < nbintv; k++)
     403  for ( k=0; k <= nbintv; k++)
    402404    {
    403405      x = xm - k*pas;
Note: See TracChangeset for help on using the changeset viewer.