Changeset 575 in Sophya for trunk


Ignore:
Timestamp:
Nov 12, 1999, 4:03:54 PM (26 years ago)
Author:
ansari
Message:

MAJ tspm.cc et piapp.cc , Reza 12/11/99

Location:
trunk/SophyaProg/Tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaProg/Tests/piapp.cc

    r573 r575  
    1212
    1313#include "timing.h"
    14 #include "piinit.h"
     14#include "sambainit.h"
    1515
    1616#include "pistdimgapp.h"
     
    2525int fgsig, fgred;
    2626
    27 PeidaInteractiveInitiator piinit;
     27SambaInitiator sambainit;
    2828   
    2929InitTim();
     
    5959  app->SetReady();
    6060  if (fgred) app->RedirectStdOutErr(true);
    61   TRY {
     61  try {
    6262  app->Run();
    63   }  CATCH(merr) {
     63  }  catch (PException exc) {
    6464     char ans[32],rep;
    6565     app->Stop();
     
    6868     cout << endl;
    6969     cerr << endl;
    70      printf("PIStdImg/main() Exception catched ! = %ld (%s) \n", (long)merr, PeidaExc(merr));
    71      printf(" exit <CR> , continue c<CR> , close-windows, continue k<cr> ? ");  gets(ans);
    72      rc = merr;
     70     cout << "PIStdImg/main() Exception catched ! " << exc.Msg() << endl;
     71     cout << " exit <CR> , continue c<CR> , close-windows, continue k<cr> ? " << endl;
     72     gets(ans);
    7373     rep = toupper(ans[0]); 
    74      if ((rep != 'C')||(rep != 'K'))  cont = false;
     74     if ((rep != 'C')||(rep != 'K'))  { cont = false; rc = 99; }
    7575     else { cont = true; if (rep == 'K') app->CloseAllWindows(); }
    76   } ENDTRY;
     76  }
    7777}
    7878
  • trunk/SophyaProg/Tests/tspm.cc

    r542 r575  
    5454  double gmoy=0. , gsig = 0.;
    5555  double valok;
    56   SphereGorski<double>  sph2 = fiog.getObj();
     56  SphereGorski<double>  sph2 = fiog;
    5757  PrtTim("End of Write/Read ");
    5858
Note: See TracChangeset for help on using the changeset viewer.