mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
fiducial omegaM is now correctly passed to generateFromCatalog
This commit is contained in:
parent
9485b2d720
commit
78af446812
3 changed files with 7 additions and 4 deletions
|
@ -115,7 +115,7 @@ void loadData(const string& fname, NYU_VData & data)
|
|||
}
|
||||
|
||||
void generateGalaxiesInCube(NYU_VData& data, ParticleData& output_data,
|
||||
bool useComoving)
|
||||
bool useComoving, double omegaM)
|
||||
{
|
||||
double d2r = M_PI/180;
|
||||
|
||||
|
@ -126,7 +126,7 @@ void generateGalaxiesInCube(NYU_VData& data, ParticleData& output_data,
|
|||
int numZ = 1000, iZ;
|
||||
size_t nEval;
|
||||
|
||||
expanParams.Om = 0.27;
|
||||
expanParams.Om = omegaM;
|
||||
expanParams.w0 = -1.0;
|
||||
expanParams.wa = 0.0;
|
||||
expanF.params = &expanParams;
|
||||
|
@ -589,7 +589,7 @@ int main(int argc, char **argv)
|
|||
cout << "Placing galaxies..." << endl;
|
||||
generateGalaxiesInCube(data, output_data, args_info.useComoving_flag);
|
||||
generateSurfaceMask(args_info, mask, pixel_list, full_mask_list,
|
||||
data, output_data);
|
||||
data, output_data, args_info.omegaM);
|
||||
|
||||
saveForZobov(output_data, args_info.output_arg, args_info.params_arg);
|
||||
// saveData(output_data);
|
||||
|
|
|
@ -15,3 +15,5 @@ option "output" - "Filename of particle datafile" string required
|
|||
option "params" - "Output parameters of the datacube" string required
|
||||
|
||||
option "useComoving" - "Convert to real space using LCDM cosmology" flag off
|
||||
|
||||
option "omegaM" - "Omega Matter for fiducial cosmology" double optional default="0.27"
|
||||
|
|
|
@ -81,10 +81,11 @@ def launchGenerate(sample, binPath, workDir=None, inputDataDir=None,
|
|||
density_fake %g
|
||||
%s
|
||||
%s
|
||||
omegaM %g
|
||||
""" % (datafile, maskFile, outputFile,
|
||||
zobovDir+"/zobov_slice_"+sampleName+".par",
|
||||
sample.zBoundary[0], sample.zBoundary[1], sample.fakeDensity,
|
||||
useComovingFlag, inputParameterFlag)
|
||||
useComovingFlag, inputParameterFlag, sample.omegaM)
|
||||
|
||||
parmFile = os.getcwd()+"/generate_"+sample.fullName+".par"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue