Re: [OMPI users] calling a parallel solver from sequential code

2013-11-18 Thread Damien
Florian, There's two ways. You can make your whole app MPI-based, but only have the master process do any of the sequential work, while the others spin until the parallel part. That's the easiest, but you then have MPI everywhere in your app. The other way is to have the MPI processes exis

[OMPI users] calling a parallel solver from sequential code

2013-11-18 Thread Florian Bruckner
hi, how can i call an MPI parallelized solver routine from a sequential code. The sequential code is already existing and the structure looks like to following: void main() { do { x = rand(); sequential_code(); // this sequential code should only be executed on the mast