This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Running Ensembles of Independent Models.

0 votes

Hello,

I would like to know how straight forward it is to run ensembles for the same model (where each model is independent) within a single FEniCS script.

For example if I have a mesh/PDE I can solve this using FEniCS. However if I want to change the initial conditions (ICs) then I have to run the scripts sequentially (one call per differing IC). Is it possible to run multiple IC problems (with the same mesh/PDE) within the same FEniCS script in parallel and if so how would I go about this?

I believe that this is related to the following queries:

solve independent equations on different cores,
Spawning independent dolfin processes with mpi4py.

However I would like to separate p models running with n processes (and thus have each model run with n/p processes) instead of just the one model per process.

Kind regards
Les

asked Sep 10, 2015 by lnagy FEniCS Novice (250 points)

1 Answer

0 votes

It looks like what you want is to run several independent simulations at the same time. Is that it?
If you wanted to do this completely inside the script, I guess you would have to mess around with MPI communicators and similar things.

A better hack could be to craft a smart bash script, calling mpirun several times at the same time.

answered Oct 10, 2015 by Massimiliano Leoni FEniCS User (1,760 points)
...