Changeset 3789 in Sophya for trunk/Cosmo/RadioBeam/calcpk.cc
- Timestamp:
- Jun 27, 2010, 4:57:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/calcpk.cc
r3787 r3789 20 20 #include "qhist.h" 21 21 #include "lobe.h" 22 #include "cubedef.h" 22 23 23 24 #include "histinit.h" … … 86 87 RandomGenerator rg; 87 88 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 89 94 HProf hp = pkc.ComputePk(0.,256); 90 95 { … … 92 97 POutPersist po(outname); 93 98 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; 94 103 } 95 104 tm.Split(" Done CalcP(k) ");
Note:
See TracChangeset
for help on using the changeset viewer.