Overture
Version 25
|
#include "ParallelUtility.h"
Macros | |
#define | MPI_Real MPI_FLOAT |
#define | FOR_BOX(i0, i1, i2, i3, box) const int i0b=box.bound(0),i1b=box.bound(1),i2b=box.bound(2),i3b=box.bound(3);for( int i3=box.base(3); i3<=i3b; i3++ )for( int i2=box.base(2); i2<=i2b; i2++ )for( int i1=box.base(1); i1<=i1b; i1++ )for( int i0=box.base(0); i0<=i0b; i0++ ) |
#define | FOR_BOX_BOX_WITH_STRIDE(i0, i1, i2, i3, ibox, j0, j1, j2, j3, jbox) const int i0b=ibox.bound(0),i1b=ibox.bound(1),i2b=ibox.bound(2),i3b=ibox.bound(3);const int j0b=jbox.bound(0),j1b=jbox.bound(1),j2b=jbox.bound(2),j3b=jbox.bound(3);const int is0=D[0].getStride(), is1=D[1].getStride(), is2=D[2].getStride(), is3=D[3].getStride();const int js0=S[0].getStride(), js1=S[1].getStride(), js2=S[2].getStride(), js3=S[3].getStride();for( int i3=ibox.base(3),j3=jbox.base(3); i3<=i3b; i3+=is3, j3+=js3 )for( int i2=ibox.base(2),j2=jbox.base(2); i2<=i2b; i2+=is2, j2+=js2 )for( int i1=ibox.base(1),j1=jbox.base(1); i1<=i1b; i1+=is1, j1+=js1 )for( int i0=ibox.base(0),j0=jbox.base(0); i0<=i0b; i0+=is0, j0+=js0 ) |
#define | FOR_BOX_WITH_STRIDE(i0, i1, i2, i3, stride0, stride1, stride2, stride3, box) const int i0b=box.bound(0),i1b=box.bound(1),i2b=box.bound(2),i3b=box.bound(3);const int is0=stride0, is1=stride1, is2=stride2, is3=stride3;for( int i3=box.base(3); i3<=i3b; i3+=is3 )for( int i2=box.base(2); i2<=i2b; i2+=is2 )for( int i1=box.base(1); i1<=i1b; i1+=is1 )for( int i0=box.base(0); i0<=i0b; i0+=is0 ) |
#define FOR_BOX | ( | i0, | |
i1, | |||
i2, | |||
i3, | |||
box | |||
) | const int i0b=box.bound(0),i1b=box.bound(1),i2b=box.bound(2),i3b=box.bound(3);for( int i3=box.base(3); i3<=i3b; i3++ )for( int i2=box.base(2); i2<=i2b; i2++ )for( int i1=box.base(1); i1<=i1b; i1++ )for( int i0=box.base(0); i0<=i0b; i0++ ) |
Referenced by CopyArray::copyArray().
#define FOR_BOX_BOX_WITH_STRIDE | ( | i0, | |
i1, | |||
i2, | |||
i3, | |||
ibox, | |||
j0, | |||
j1, | |||
j2, | |||
j3, | |||
jbox | |||
) | const int i0b=ibox.bound(0),i1b=ibox.bound(1),i2b=ibox.bound(2),i3b=ibox.bound(3);const int j0b=jbox.bound(0),j1b=jbox.bound(1),j2b=jbox.bound(2),j3b=jbox.bound(3);const int is0=D[0].getStride(), is1=D[1].getStride(), is2=D[2].getStride(), is3=D[3].getStride();const int js0=S[0].getStride(), js1=S[1].getStride(), js2=S[2].getStride(), js3=S[3].getStride();for( int i3=ibox.base(3),j3=jbox.base(3); i3<=i3b; i3+=is3, j3+=js3 )for( int i2=ibox.base(2),j2=jbox.base(2); i2<=i2b; i2+=is2, j2+=js2 )for( int i1=ibox.base(1),j1=jbox.base(1); i1<=i1b; i1+=is1, j1+=js1 )for( int i0=ibox.base(0),j0=jbox.base(0); i0<=i0b; i0+=is0, j0+=js0 ) |
Referenced by CopyArray::copyArray().
#define FOR_BOX_WITH_STRIDE | ( | i0, | |
i1, | |||
i2, | |||
i3, | |||
stride0, | |||
stride1, | |||
stride2, | |||
stride3, | |||
box | |||
) | const int i0b=box.bound(0),i1b=box.bound(1),i2b=box.bound(2),i3b=box.bound(3);const int is0=stride0, is1=stride1, is2=stride2, is3=stride3;for( int i3=box.base(3); i3<=i3b; i3+=is3 )for( int i2=box.base(2); i2<=i2b; i2+=is2 )for( int i1=box.base(1); i1<=i1b; i1+=is1 )for( int i0=box.base(0); i0<=i0b; i0+=is0 ) |
Referenced by CopyArray::copyArray().
#define MPI_Real MPI_FLOAT |