Changeset 3789 in Sophya for trunk/Cosmo/RadioBeam/calcpk.cc


Ignore:
Timestamp:
Jun 27, 2010, 4:57:36 PM (15 years ago)
Author:
ansari
Message:

Corrections diverses, Reza 27/06/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/RadioBeam/calcpk.cc

    r3787 r3789  
    2020#include "qhist.h"
    2121#include "lobe.h"
     22#include "cubedef.h"
    2223
    2324#include "histinit.h"
     
    8687    RandomGenerator rg;
    8788    Four3DPk pkc(four3d, rg);
    88    
     89    double dkxmpc = DeuxPI/(double)inmap.SizeX()/XCellSizeMpc;
     90    double dkympc = DeuxPI/(double)inmap.SizeY()/YCellSizeMpc;
     91    double dkzmpc = DeuxPI/(double)inmap.SizeZ()/ZCellSizeMpc;
     92    pkc.SetCellSize(dkxmpc, dkympc, dkzmpc);
     93
    8994    HProf hp = pkc.ComputePk(0.,256);
    9095    {
     
    9297      POutPersist po(outname);
    9398      po << hp;
     99      outname = "f3d_" + outname;
     100      cout << "calcpk[4.b] : writing four3d to PPF file  " << outname << endl;
     101      POutPersist pof(outname);
     102      pof << four3d;
    94103    }
    95104    tm.Split(" Done CalcP(k) ");   
Note: See TracChangeset for help on using the changeset viewer.