HARM
harm and utilities
 All Data Structures Files Functions Variables Typedefs Macros Pages
mpidefs.h
Go to the documentation of this file.
1 
12 #ifndef USINGLIAISON
13 
14 #include "supermpidefs.h"
15 #endif
16 
17 
20 
21 
22 
23 
33 int myid_world, numprocs;
34 int myid; // GRMHD CODE rank for non-MPI commands
35 int *MPIid; // GRMHD MPI internal rank for MPI commands
36 char myidtxt[MAXFILENAME];
38 long long int rtotalzones;
39 long long int itotalzones;
40 long long int totalsize[COMPDIM + 1];
41 long long int itotalsize[COMPDIM + 1];
42 int mycpupos[COMPDIM + 1]; // my position amongst the cpus
44 // NUMPACKUNPACK+1 because start at 1
48 int srdir[3*2]; // which direction this cpu
49 // sends/receives normal interior data
50 int startpos[COMPDIM + 1];
51 int endpos[COMPDIM + 1]; // startj and endj are where this CPU
52 // located on full grid
54 int *endpos0[COMPDIM+1];
56 
58 
59 
61 #if(USEMPI)
62 MPI_Group MPI_GROUP_WORLD;
63 char processor_name[MPI_MAX_PROCESSOR_NAME];
64 MPI_Status mpichstatus;
65 #endif
66 
69 
72 long long int nextbuf;
74 long long int bufferoffset;
75 long long int joniosize,writebufsize;
77 
78 
80 //
81 // OpenMP stuff
82 //
84