HARM
harm and utilities
 All Data Structures Files Functions Variables Typedefs Macros Pages
Macros | Functions
boundmpi.c File Reference

Boundary conditions using MPI for core-overlapping cells for FTYPE quantities. More...

#include "decs.h"
Include dependency graph for boundmpi.c:

Go to the source code of this file.

Macros

#define DEBUG   0
 
#define PACKLOOP(i, j, k, istart, istop, jstart, jstop, kstart, kstop, di, dj, dk, pr, num)   PLOOPMPI(pr,num) SUPERGENLOOP(i,j,k,istart,istop,jstart,jstop,kstart,kstop,di,dj,dk)
 
#define PACKLOOPORIG(i, j, k, istart, istop, jstart, jstop, kstart, kstop, di, dj, dk, pr, num)   PLOOPMPIORIG(pr,num) SUPERGENLOOP(i,j,k,istart,istop,jstart,jstop,kstart,kstop,di,dj,dk)
 
#define PACKBLOCK
 
#define UNPACKBLOCK
 

Functions

static int get_truesize (int dir, int boundvartype)
 get true size of NPR-type sized objects More...
 

Detailed Description

Boundary conditions using MPI for core-overlapping cells for FTYPE quantities.

Definition in file boundmpi.c.

Macro Definition Documentation

#define DEBUG   0

Definition at line 11 of file boundmpi.c.

#define PACKBLOCK
Value:
i,j,k \
,dirloopset[boundvartype][dir][primgridpos[boundvartype][dir][pr]][DIRPSTART1] \
,dirloopset[boundvartype][dir][primgridpos[boundvartype][dir][pr]][DIRPSTOP1] \
,dirloopset[boundvartype][dir][primgridpos[boundvartype][dir][pr]][DIRPSTART2] \
,dirloopset[boundvartype][dir][primgridpos[boundvartype][dir][pr]][DIRPSTOP2] \
,dirloopset[boundvartype][dir][primgridpos[boundvartype][dir][pr]][DIRPSTART3] \
,dirloopset[boundvartype][dir][primgridpos[boundvartype][dir][pr]][DIRPSTOP3] \
,dirloopset[boundvartype][dir][primgridpos[boundvartype][dir][pr]][DIRPDIR1] \
,dirloopset[boundvartype][dir][primgridpos[boundvartype][dir][pr]][DIRPDIR2] \
,dirloopset[boundvartype][dir][primgridpos[boundvartype][dir][pr]][DIRPDIR3] \
,pr \
,dirgenset[boundvartype][dir][DIRNUMPR]

Definition at line 251 of file boundmpi.c.

#define PACKLOOP (   i,
  j,
  k,
  istart,
  istop,
  jstart,
  jstop,
  kstart,
  kstop,
  di,
  dj,
  dk,
  pr,
  num 
)    PLOOPMPI(pr,num) SUPERGENLOOP(i,j,k,istart,istop,jstart,jstop,kstart,kstop,di,dj,dk)

Definition at line 245 of file boundmpi.c.

#define PACKLOOPORIG (   i,
  j,
  k,
  istart,
  istop,
  jstart,
  jstop,
  kstart,
  kstop,
  di,
  dj,
  dk,
  pr,
  num 
)    PLOOPMPIORIG(pr,num) SUPERGENLOOP(i,j,k,istart,istop,jstart,jstop,kstart,kstop,di,dj,dk)

Definition at line 247 of file boundmpi.c.

#define UNPACKBLOCK
Value:
i,j,k \
,dirloopset[boundvartype][dir][primgridpos[boundvartype][dir][pr]][DIRUSTART1] \
,dirloopset[boundvartype][dir][primgridpos[boundvartype][dir][pr]][DIRUSTOP1] \
,dirloopset[boundvartype][dir][primgridpos[boundvartype][dir][pr]][DIRUSTART2] \
,dirloopset[boundvartype][dir][primgridpos[boundvartype][dir][pr]][DIRUSTOP2] \
,dirloopset[boundvartype][dir][primgridpos[boundvartype][dir][pr]][DIRUSTART3] \
,dirloopset[boundvartype][dir][primgridpos[boundvartype][dir][pr]][DIRUSTOP3] \
,dirloopset[boundvartype][dir][primgridpos[boundvartype][dir][pr]][DIRUDIR1] \
,dirloopset[boundvartype][dir][primgridpos[boundvartype][dir][pr]][DIRUDIR2] \
,dirloopset[boundvartype][dir][primgridpos[boundvartype][dir][pr]][DIRUDIR3] \
,pr \
,dirgenset[boundvartype][dir][DIRNUMPR]

Definition at line 430 of file boundmpi.c.

Function Documentation

static int get_truesize ( int  dir,
int  boundvartype 
)
static

get true size of NPR-type sized objects

Definition at line 331 of file boundmpi.c.