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:
Paul M. Sutter 2025-05-22 18:36:01 -04:00
parent 23d665f7bd
commit 05030b24e8
2 changed files with 122 additions and 35 deletions

View file

@ -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):