Changeset 949 in Sophya for trunk/SophyaProg/PMixer/tgsky.cc


Ignore:
Timestamp:
Apr 16, 2000, 6:48:45 PM (25 years ago)
Author:
ansari
Message:

Compil sous Sun-g++ (mpa-Garching) - Reza 16/4/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaProg/PMixer/tgsky.cc

    r931 r949  
    1111int main(int narg, char* arg[])
    1212{
    13   double teta,phi;
    14   double gmoy=0., gsig=0.;
    1513
    16   SophyaInit();
    17   InitTim();   // Initializing the CPU timer
    1814  if ((narg < 5) || ((narg>1) && (strcmp(arg[1],"-h") == 0)) )  {
    1915    cout << " tgsky : Generation of random skies  " << endl;
     
    2622    }
    2723
     24  try {
     25  double teta,phi;
     26  double gmoy=0., gsig=0.;
     27#if !defined(SunOS) || !defined(__GNUG__)
     28  // ca se plante sur Sun !
     29  SophyaInit();
     30#endif
     31  InitTim();   // Initializing the CPU timer
    2832  int  ns = atoi(arg[1]);
    2933  SphereHEALPix<float> sph(ns);
     
    110114  PrtTim("End of WriteFITS ");
    111115
     116  }
     117  catch (PThrowable exc) {
     118    cerr << " tgsky: Catched Exception - Msg= " << exc.Msg() << endl;
     119  }
     120  catch (...) {
     121    cerr << " tgsky: Catched unknown exception (...) " << endl;
     122  }
    112123  cout <<  " ============ End of tgsky program ======== " << endl;
    113124  return 0;
Note: See TracChangeset for help on using the changeset viewer.