Changeset 1801 in Sophya


Ignore:
Timestamp:
Nov 30, 2001, 4:02:04 PM (24 years ago)
Author:
aubourg
Message:

gph424 parallele

Location:
trunk/ArchTOIPipe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/fitstoirdr.cc

    r1800 r1801  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: fitstoirdr.cc,v 1.23 2001-11-29 18:19:32 aubourg Exp $
     5// $Id: fitstoirdr.cc,v 1.24 2001-11-30 15:02:04 aubourg Exp $
    66
    77#include "fitstoirdr.h"
     
    223223 uint_8 * tmpflg = new uint_8[Buff_Sz];
    224224
     225 TOIManager* mgr = TOIManager::getManager();
     226
    225227 //////// Read data and put into pipe
    226228 long ideb=-1,ifin=-1;
     
    234236     long n = ifin-ideb+1;
    235237     int anyNul;
    236      fits_lock();
    237238     if (implicitSN) {
     239       if (ideb+implicitSNStart > mgr->getRequestedEnd()
     240           || ideb+implicitSNStart > forcedMaxIn) break;
     241       if (ifin+implicitSNStart < mgr->getRequestedBegin()
     242           || ifin+implicitSNStart < forcedMinIn) continue;
    238243       for (long j=0; j<Buff_Sz; j++) {
    239244         samplenum[j] = j+ideb+implicitSNStart;
    240245       }
     246       fits_lock();
    241247     } else {
     248       fits_lock();
    242249       fits_read_col_dbl(fptr,1,ideb+1,1,n,0,samplenum,&anyNul,&fstatus);
     250       if (ideb+implicitSNStart > mgr->getRequestedEnd()
     251           || ideb+implicitSNStart > forcedMaxIn) {
     252         fits_unlock();
     253         break;
     254       }
     255       if (ifin+implicitSNStart < mgr->getRequestedBegin()
     256           || ifin+implicitSNStart < forcedMinIn) {
     257         fits_unlock();
     258         continue;
     259       }
    243260     }
    244261     for(int k=0; k<getNOut(); k++) {
     
    258275   long ip = i-ideb; // pointeurs dans les buffers
    259276   long sn = (long) (samplenum[ip]+.1);
    260    TOIManager* mgr = TOIManager::getManager();
    261    if(samplenum[0] > mgr->getRequestedEnd()) break;
    262    if(samplenum[0] > forcedMaxIn) break;
    263    if(samplenum[ifin-ideb] < mgr->getRequestedBegin()) continue;
    264    if(samplenum[ifin-ideb] < forcedMinIn) continue;
    265277   if (ip == 0) {
    266278     for(int k=0; k<getNOut(); k++) {
  • trunk/ArchTOIPipe/TestPipes/quickmap_p.cc

    r1800 r1801  
    11// GPH 424.1   Planck HFI-L2 Simple Map Making
    22// Eric Aubourg     CEA/DAPNIA/SPP
    3 // $Id: quickmap_p.cc,v 1.1 2001-11-29 18:19:32 aubourg Exp $
     3// $Id: quickmap_p.cc,v 1.2 2001-11-30 15:02:04 aubourg Exp $
    44
    55#include <stdlib.h>
     
    370370    cout<<"Creating map fits file "<<prefs.output.fname<<endl;
    371371    // Would need some generic mechanism here $CHECK$ $$TBD$$
    372     if (smap->TypeOfMap() == "RING") {
     372    if ((string)smap->TypeOfMap() == "RING") {
    373373      sfits << * (SphereHEALPix<r_8>*)smap;
    374     } else if (smap->TypeOfMap() == "LOCAL") {
     374    } else if ((string)smap->TypeOfMap() == "LOCAL") {
    375375      sfits << * (LocalMap<r_8>*)smap;
    376376    } else {
     
    383383    cout<<"Creating map weight fits file "<<prefs.output.wfname<<endl;
    384384    //    swfits << *wmap;
    385     if (swmap->TypeOfMap() == "RING") {
     385    if ((string)swmap->TypeOfMap() == "RING") {
    386386      swfits << * (SphereHEALPix<r_8>*)swmap;
    387     } else if (swmap->TypeOfMap() == "LOCAL") {
     387    } else if ((string)swmap->TypeOfMap() == "LOCAL") {
    388388      swfits << * (LocalMap<r_8>*)swmap;
    389389    } else {
Note: See TracChangeset for help on using the changeset viewer.