mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-05 07:41:11 +00:00
fixed bug where zobov wasn't getting correct nmber of threads; fixed and now hard-coded to 2 parallel threads
This commit is contained in:
parent
443b4bdeec
commit
6868a026f5
2 changed files with 64 additions and 2 deletions
62
pipeline/datasets/multidark.py
Normal file
62
pipeline/datasets/multidark.py
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
import os
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
# CONFIGURATION
|
||||||
|
|
||||||
|
# directory for the input simulation/observational particle files
|
||||||
|
catalogDir = os.getenv("HOME")+"/workspace/Voids/catalogs/multidark/"
|
||||||
|
|
||||||
|
# path to HOD code
|
||||||
|
hodPath = os.getenv("HOME")+"/projects/Voids/hod/HOD.x"
|
||||||
|
|
||||||
|
# where to put the final void catalog, figures, and output logs
|
||||||
|
voidOutputDir = os.getenv("HOME")+"/workspace/Voids/multidark/"
|
||||||
|
figDir = os.getenv("PWD")+"/../figs/multidark/"
|
||||||
|
logDir = os.getenv("PWD")+"/../logs/multidark/"
|
||||||
|
|
||||||
|
# where to place the pipeline scripts
|
||||||
|
scriptDir = os.getenv("PWD")+"/multidark/"
|
||||||
|
|
||||||
|
# simulation or observation?
|
||||||
|
dataType = "simulation"
|
||||||
|
|
||||||
|
# available formats for simulation: gadget, multidark
|
||||||
|
dataFormat = "multidark"
|
||||||
|
dataUnit = 1 # as multiple of Mpc/h
|
||||||
|
|
||||||
|
# place particles on the lightcone?
|
||||||
|
useLightCone = True
|
||||||
|
|
||||||
|
# common filename of particle files
|
||||||
|
particleFileBase = "mdr1_particles_z"
|
||||||
|
|
||||||
|
# list of file numbers for the particle files
|
||||||
|
# to get particle file name, we take particleFileBase+fileNum
|
||||||
|
fileNums = (("0.0", "0.53", "1.0"))
|
||||||
|
|
||||||
|
# redshift of each file in the above list
|
||||||
|
redshifts = (("0.0", "0.53", "1.0"))
|
||||||
|
|
||||||
|
# how many independent slices along the z-axis?
|
||||||
|
numSlices = 4
|
||||||
|
|
||||||
|
# how many subdivisions along the x- and y- axis?
|
||||||
|
# ( = 2 will make 4 subvolumes for each slice, = 3 will make 9, etc.)
|
||||||
|
numSubvolumes = 1
|
||||||
|
|
||||||
|
# prefix to give all outputs
|
||||||
|
prefix = "md_"
|
||||||
|
|
||||||
|
# list of desired subsamples
|
||||||
|
subSamples = ((0.1, 0.05, 0.01, 0.002, 0.001, 0.0004, 0.0002))
|
||||||
|
|
||||||
|
# simulation information
|
||||||
|
numPart = 1024*1024*1024
|
||||||
|
lbox = 1000 # Mpc/h
|
||||||
|
omegaM = 0.27
|
||||||
|
hubble = 0.70
|
||||||
|
|
||||||
|
# END CONFIGURATION
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
# -----------------------------------------------------------------------------
|
|
@ -200,8 +200,8 @@ def launchZobov(sample, binPath, zobovDir=None, logDir=None, continueRun=None):
|
||||||
numThreads = 2
|
numThreads = 2
|
||||||
|
|
||||||
cmd = "%s/vozinit %s 0.1 1.0 %g %s %g %s %s %s >& %s" % \
|
cmd = "%s/vozinit %s 0.1 1.0 %g %s %g %s %s %s >& %s" % \
|
||||||
(binPath, datafile, numThreads, \
|
(binPath, datafile, sample.numSubDivisions, \
|
||||||
"_"+sampleName, sample.numSubDivisions, \
|
"_"+sampleName, numThreads, \
|
||||||
binPath, zobovDir, maskIndex, logFile)
|
binPath, zobovDir, maskIndex, logFile)
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue