Go to the documentation of this file.
10 #define U(I1,I2,I3,N) u(I1,I2,I3,N)
11 #define UR2(I1,I2,I3,N) ur(I1,I2,I3,N)
12 #define US2(I1,I2,I3,N) us(I1,I2,I3,N)
13 #define UT2(I1,I2,I3,N) ut(I1,I2,I3,N)
22 #define UR4(I1,I2,I3,N) ur(I1,I2,I3,N)
23 #define US4(I1,I2,I3,N) us(I1,I2,I3,N)
24 #define UT4(I1,I2,I3,N) ut(I1,I2,I3,N)
33 #define MERGE0(a,i0,I1,I2,I3) \
35 aR0=Range(a.getBase(0),a.getBound(0)), \
36 aR1=Range(a.getBase(1),a.getBound(1)), \
37 aR2=Range(a.getBase(2),a.getBound(2)), \
38 aR3=Range(a.getBase(3),a.getBound(3)), \
39 a.reshape(Range(0,aR0.length()*aR1.length()-1),aR2,aR3), \
40 dum=0; dum<1; dum++, \
41 a.reshape(aR0,aR1,aR2,aR3) ) \
42 a(Index(i0-aR0.getBase()+aR0.length()*(I1.getBase()-aR1.getBase()), \
43 I1.length(),aR0.length()),I2,I3)
46 #define M123(m1,m2,m3) (m1+halfWidth1+width*(m2+halfWidth2+width*(m3+halfWidth3)))
47 #define M123N(m1,m2,m3,n) (M123(m1,m2,m3)+stencilSize*(n))
50 #define CE(c,e) (stencilSize*((c)+numberOfComponentsForCoefficients*(e)))
51 #define M123CE(m1,m2,m3,c,e) (M123(m1,m2,m3)+CE(c,e))
54 #define MCE(m1,m2,m3) (M123(m1,m2,m3)+CE(c0,e0))
60 #define UX_MERGED(m1,m2,m3,c,e,I1,I2,I3) MERGE0(derivative,M123CE(m1,m2,m3,c,e),I1,I2,I3)
62 #define EQUATIONNUMBER(m1,m2,m3,n,I1,I2,I3) MERGE0(equationNumber0,M123N(m1,m2,m3,n),I1,I2,I3)
64 #define COEFFS(m1,m2,m3,n,I1,I2,I3) coeff0(M123N(m1,m2,m3,n),I1,I2,I3)
65 #define EQUATIONNUMBERS(m1,m2,m3,n,I1,I2,I3) equationNumber0(M123N(m1,m2,m3,n),I1,I2,I3)
68 #define ForStencil(m1,m2,m3) \
69 for( m3=-halfWidth3; m3<=halfWidth3; m3++) \
70 for( m2=-halfWidth2; m2<=halfWidth2; m2++) \
71 for( m1=-halfWidth1; m1<=halfWidth1; m1++)
73 #define ForStencilN(n,m1,m2,m3) \
74 for( n=0; n<numberOfComponents; n++) \
75 for( m3=-halfWidth3; m3<=halfWidth3; m3++) \
76 for( m2=-halfWidth2; m2<=halfWidth2; m2++) \
77 for( m1=-halfWidth1; m1<=halfWidth1; m1++)
92 #define U(I1,I2,I3,N) (delta(m1) *delta(m2) *delta(m3))
93 #define UR2(I1,I2,I3,N) (Dr(m1) *delta(m2) *delta(m3))
94 #define US2(I1,I2,I3,N) (delta(m1) *Ds(m2) *delta(m3))
95 #define UT2(I1,I2,I3,N) (delta(m1) *delta(m2) *Dt(m3))
96 #define URR2(I1,I2,I3,N) (Drr(m1) *delta(m2) *delta(m3))
97 #define URS2(I1,I2,I3,N) (Dr(m1) *Ds(m2) *delta(m3))
98 #define URT2(I1,I2,I3,N) (Dr(m1) *delta(m2) *Dt(m3))
99 #define USS2(I1,I2,I3,N) (delta(m1) *Dss(m2) *delta(m3))
100 #define UST2(I1,I2,I3,N) (delta(m1) *Ds(m2) *Dt(m3))
101 #define UTT2(I1,I2,I3,N) (delta(m1) *delta(m2) *Dtt(m3))
112 #define UR4(I1,I2,I3,N) (Dr4(m1) *delta(m2) *delta(m3))
113 #define US4(I1,I2,I3,N) (delta(m1) *Ds4(m2) *delta(m3))
114 #define UT4(I1,I2,I3,N) (delta(m1) *delta(m2) *Dt4(m3))
115 #define URR4(I1,I2,I3,N) (Drr4(m1) *delta(m2) *delta(m3))
116 #define URS4(I1,I2,I3,N) (Dr4(m1) *Ds4(m2) *delta(m3))
117 #define URT4(I1,I2,I3,N) (Dr4(m1) *delta(m2) *Dt4(m3))
118 #define USS4(I1,I2,I3,N) (delta(m1) *Dss4(m2) *delta(m3))
119 #define UST4(I1,I2,I3,N) (delta(m1) *Ds4(m2) *Dt4(m3))
120 #define UTT4(I1,I2,I3,N) (delta(m1) *delta(m2) *Dtt4(m3))