mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
made adjustments to support potential new boundary handling scheme; not sure if I'll go through with it so I may roll these changes back
This commit is contained in:
parent
23d665f7bd
commit
05030b24e8
2 changed files with 122 additions and 35 deletions
|
@ -130,6 +130,21 @@ def launchPrep(sample, binPath, workDir=None, inputDataDir=None,
|
|||
log.write("Done!\n")
|
||||
log.close()
|
||||
|
||||
# add tracers along the bounding box to contain the tessellation
|
||||
log.write("\nAdding guards along box faces...\n")
|
||||
nGuard = 42
|
||||
|
||||
# load in file
|
||||
|
||||
# store number of particles
|
||||
|
||||
# store number of guards
|
||||
|
||||
# place guards
|
||||
|
||||
|
||||
# re-save file
|
||||
|
||||
|
||||
if jobSuccessful(logFile, "Done!\n"):
|
||||
endTime = time.time()
|
||||
|
@ -497,6 +512,7 @@ def launchZobov(sample, binPath, outputDir=None, logDir=None, continueRun=None,
|
|||
nadjPerPart = np.fromfile(File, dtype=np.int32,count=numPart)
|
||||
for p in range(numPart):
|
||||
nin = np.fromfile(File, dtype=np.int32, count=1)[0]
|
||||
part[p].nadjs = nin
|
||||
for n in range(nin):
|
||||
pAdj = np.fromfile(File, dtype=np.int32, count=1)[0]
|
||||
if (p < pAdj):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue