~ubuntu-branches/ubuntu/wily/boinc-app-seti/wily-proposed

« back to all changes in this revision

Viewing changes to client/analyzePoT.cpp

  • Committer: Package Import Robot
  • Author(s): Gianfranco Costamagna
  • Date: 2014-04-14 00:10:11 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20140414001011-uos97gr5k8imsx8e
Tags: 7.28~svn2203-1
* New upstream release, patch refresh.
* Drop fix-armel.patch and fix-ftbfs-arm64.patch, addressed
  upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
    int NumDataPoints,
74
74
    ChirpFftPair_t &cfft
75
75
) {
76
 
 
 
76
#ifdef USE_MANUAL_CALLSTACK
 
77
    call_stack.enter("analyze_pot()");
 
78
#endif 
77
79
 
78
80
    // This function analyses Power over Time for the current data block.
79
81
    // The PoT array  is created by taking an array of power spectra (a
375
377
 
376
378
    }   // end looking for pulses
377
379
 
378
 
 
 
380
#ifdef USE_MANUAL_CALLSTACK
 
381
    call_stack.exit();
 
382
#endif 
379
383
    return (retval);   // no error return point
380
384
}
381
385
 
387
391
    int ul_PoTLen,
388
392
    int ul_PoT
389
393
) {
390
 
 
 
394
#ifdef USE_MANUAL_CALLSTACK
 
395
    call_stack.enter("GetFixedPoT()");
 
396
#endif 
391
397
    // This routine returns a PoT array of fixed length, regardless
392
398
    // of the actual number of time bins in the current data block.
393
399
 
556
562
        } // end for ul_PoT_i < swi.analysis_cfg.gauss_pot_length
557
563
        analysis_state.FLOP_counter+=(double)(9*swi.analysis_cfg.gauss_pot_length);
558
564
    }
 
565
#ifdef USE_MANUAL_CALLSTACK
 
566
    call_stack.exit();
 
567
#endif 
559
568
    return 0;
560
569
}
561
570
 
562
571
void ComputePoTInfo(int num_cfft, int NumDataPoints) {
563
 
 
 
572
#ifdef USE_MANUAL_CALLSTACK
 
573
    call_stack.enter("ComputePoTInfo()");
 
574
#endif 
564
575
    // Tis routine calculates various PoT values based on program constants
565
576
    // and data contained in the current WU.
566
577
 
620
631
        PoTInfo.GaussTOffsetStart   = static_cast<int>(floor(swi.analysis_cfg.pot_t_offset * PoTInfo.GaussSigma+0.5));
621
632
        PoTInfo.GaussTOffsetStop    = swi.analysis_cfg.gauss_pot_length - PoTInfo.GaussTOffsetStart;
622
633
    }
 
634
#ifdef USE_MANUAL_CALLSTACK
 
635
    call_stack.exit();
 
636
#endif 
623
637
}
624
638
 
625
639
void GetPulsePoTLen(long FullPoTLen, int * PulsePoTLen, int * PulseOverlap) {
 
640
#ifdef USE_MANUAL_CALLSTACK
 
641
    call_stack.enter("GetPulsePotLen()");
 
642
#endif 
626
643
 
627
644
    // This routine, given the time axis length of a WU in bins and data available
628
645
    // in the PoTInfo struct, will calculate how many time bins to pass the pulse
670
687
    fprintf(stderr, "BinRate = %f\n", BinRate);
671
688
    fprintf(stderr, "BinsPerBeam = %f\n", BinsPerBeam);
672
689
#endif
673
 
 
 
690
#ifdef USE_MANUAL_CALLSTACK
 
691
    call_stack.exit();
 
692
#endif 
674
693
}
675
694