Activated call to SDF loader in generateMock

This commit is contained in:
Guilhem Lavaux 2013-03-02 09:57:11 -06:00
parent 9dff8cfb5a
commit 3c9ad41132
2 changed files with 10 additions and 0 deletions

View file

@ -618,6 +618,12 @@ int main(int argc, char **argv)
{
loader = multidarkLoader(args_info.multidark_arg, preselector);
}
#ifdef SDF_SUPPORT
else if (args_info.sdf_given)
{
loader = sdfLoader(args_info.sdf_arg, args_info.sdf_splitting_arg, NEED_POSITION|NEED_VELOCITY|NEED_GADGET_ID, preselector);
}
#endif
else
{
cerr << "A simulation snapshot is required to generate a mock catalog." << endl;

View file

@ -11,6 +11,9 @@ option "gadget" - "Base name of gadget snapshot (without parallel writing ex
option "flash" - "Base name for FLASH snapshot" string optional
option "multidark" - "Base name for multidark snapshot" string optional
option "sdf" - "SDF snapshot name" string optional
option "sdf_splitting" - "Number of artificial splitting of the SDF snapshot" int optional default="20"
option "axis" - "Redshift axis (X=0, Y=1, Z=2)" int optional default="2"
option "output" - "Output filename for particles" string required
@ -37,3 +40,4 @@ option "subsample_seed" - "Seed for random number generation to select the subsa
option "resubsample" - "Resubsampling factor compared to the subsampled simulation" double optional
option "resubsample_seed" - "Seed for resubsampling from a subsampled simulation" int optional default="20132011"