VasiliBaranov / packing-generation

Hard-sphere packing generation in C++ with the Lubachevsky–Stillinger, Jodrey–Tory, and force-biased algorithms and packing post-processing.
MIT License
106 stars 43 forks source link

Suggestions for running multiple simulations independent from each other #35

Closed sgbaird closed 1 year ago

sgbaird commented 1 year ago

I'm doing optimization and want to be able to run simulations independent of each other. As a workaround, I'm making separate directories for each simulation and copying the EXE file into the directory.

VasiliBaranov commented 1 year ago

Hi @sgbaird ,

i think this answer to another question of yours will help: https://github.com/VasiliBaranov/packing-generation/issues/34#issuecomment-1321236431

So you just start several subprocesses separately, but you don't copy the exe, you just run the same exe in multiple current working directories.

And of course, the program will process multiple packings sequentially if they are in subfolders to the current folder (but you know this based on other questions), and that's probably not what you need.

Hope this helps!

Best Regards, Vasili

sgbaird commented 1 year ago

Realizing now this is a duplicate of #34. Thanks for the answers! Seems like the right way to go.