> What is the correct syntax for compiling a Basilisk problem to run in
> parallel with MPI
See:
http://basilisk.fr/src/Tips#parallel-runs-with-mpi
http://basilisk.fr/src/Tips#running-on-supercomputers
> What is the purpose of the "D_MPI" flag? Does this specify the number of
> pieces the domain will be decomposed to and should this be equal to the
> number of MPI processes?
-D_MPI=1 is a standard C compiler option and is the command line
equivalent of adding
#define _MPI 1
in the source code. When this macro is defined to something different
from zero, MPI parallelisation is turned on in the Basilisk source code.
Otherwise the code is serial, or parallelised with OpenMP if the proper
compiler option is used (this is compiler-dependent but is often
-fopenmp). Note that for the moment using both OpenMP and MPI is not
possible (i.e. -D_MPI=1 -fopenmp will not work).
A value of _MPI larger than one is only meaningful when using the
pre-defined Basilisk Makefile, see:
http://basilisk.fr/src/Tips#using-makefiles
cheers
Stephane