Changeset 885 in Sophya


Ignore:
Timestamp:
Apr 11, 2000, 4:31:36 PM (25 years ago)
Author:
ansari
Message:

compil sous KCC skymixer.cc - Reza 11/4/2000

File:
1 edited

Legend:

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

    r880 r885  
    208208        cout << "....BetaFits...  Reading Beta FITS map " << (string)flnm << endl;
    209209        fios.load(betaMap, flnm, 2);
    210         if(nSideForInt<0) nSideForInt = sqrt(betaMap.NbPixels()/12);
     210        if(nSideForInt<0) nSideForInt = sqrt((double)betaMap.NbPixels()/12);
    211211
    212212        bool bydefault = true;
     
    521521      cout << "nb pixels: " << finalMap.NbPixels() << endl;
    522522    }
    523   SphereHEALPix<T> bigBetaMap(sqrt(nbpix/12));
     523  SphereHEALPix<T> bigBetaMap(sqrt((double)nbpix/12));
    524524  if(nbpix != betaMap.NbPixels())
    525525    {
     
    543543{
    544544  //  int nbpix = intBetaMap.NbPixels();
    545   //  SphereHEALPix<T> newMap(sqrt(nbpix/12));
     545  //  SphereHEALPix<T> newMap(sqrt((double)nbpix/12));
    546546  Sph2Sph(betaMap,intBetaMap);
    547547  for(int i=0; i<intBetaMap.NbPixels(); i++)
     
    576576    {
    577577      cout << "nbpix != intBetaMap.NbPixels()" << endl;
    578       SphereHEALPix<T> bigBetaMap(sqrt(nbpix/12));
    579       cout << "new map with size corresponding to mapToAdd" <<  sqrt(nbpix/12) << endl;
     578      SphereHEALPix<T> bigBetaMap(sqrt((double)nbpix/12));
     579      cout << "new map with size corresponding to mapToAdd" <<  sqrt((double)nbpix/12) << endl;
    580580      Sph2Sph(intBetaMap,bigBetaMap);
    581581      for(int i=0; i<finalMap.NbPixels();i++)
     
    604604  // Les spheres peuvent etre de type et de pixelisations differentes
    605605{
    606   int k,kin,kout;
     606  int kin,kout;
    607607  double teta,phi;
    608608 
Note: See TracChangeset for help on using the changeset viewer.