HARM
harm and utilities
 All Data Structures Files Functions Variables Typedefs Macros Pages
mympi.h File Reference

General MPI wrapper for macros/definitions. More...

#include "mympi.global.nondepmnemonics.h"
#include "mympi.definit.h"
#include "global.mpi_grmhd_grray_liaison.h"
#include "mympi.global.depmnemonics.h"
#include "mympi.global.loops.h"
#include "mympi.simulbccalcstuff.h"
#include "mympi.global.funcdeclare.h"
Include dependency graph for mympi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Detailed Description

General MPI wrapper for macros/definitions.

To start mpi run (without openmp), first do:

mpirun -np 4 ./grmhd

e.g. 4 cpus using mpi:

rm nohup.out ; nohup sh -c 'mpirun -np 4 ./grmhd' &

Note: cannot have any cpu write to same file or pipe to same file without parallel I/O or blocking through each CPU

TO GET MPI GOING 0) Choose system in makefile (e.g. USEORANGE=1) 1) set USEMPI 1 in makehead.inc 2) set USEMPI 1 below 3) ensure FULLOUTPUT 0 4) Choose file output method (e.g. ROMIO or not – see also mpi_init.c) 4) make sure MAXBND set so not excessive (fail file will report warning) 5) recompile 6) submit job (see batch.*) or run mpirun directly

Definition in file mympi.h.