I would like to take my current code and run a parameter sweep, stepping up the current injected into all cells with each new simulation. I tried to use a simple for loop like so
Code: Select all
pc=h.ParallelContext()
for istim in istim_vals:
[[parallel simulation code with all cells receiving istim]]
pc.done()
So I figured I just needed to get a new ParallelContext object for each new simulation run. I tried:
Code: Select all
for istim in istim_vals:
pc=h.ParallelContext()
[[parallel simulation code with all cells receiving istim]]
del pc
Looking through the documentation, I see that I can use subworlds if I want to combine bulletin board parallelization with distributed parallelization, but I don't even need to get that complicated. I just want to run my distributed parallel code several times within a for loop. What is the simplest way to do this? Thanks for the help.