4 #beginMacro defineTrigonometricTZMacro()
6 const int nc = numberOfComponents + int(useChargeDensity);
20 fy = numberOfDimensions>1 ?
omega[1] : 0.;
21 fz = numberOfDimensions>2 ?
omega[2] : 0.;
24 if( numberOfDimensions==2 )
28 if( !useChargeDensity )
55 assert( rc==numberOfComponents );
70 else if( numberOfDimensions==3 )
72 if( solveForElectricField )
117 printF(
"Cgmx: invalid values for omega: omega[0]=%9.3e, omega[1]=%9.3e, omega[2]=%9.3e\n",
119 printF(
"Expecting all equal values or omega[0]==omega[2] && omega[1]==0 \n"
120 " or omega[0]==omega[1] && omega[2]==0 (for divergence free field\n");
121 Overture::abort(
"Invalid values for omega[0..2]");
125 if( solveForMagneticField )
127 const int uc=
hx, vc=
hy, wc=hz;
154 Overture::abort(
"Invalid values for omega[0..2]");
164 const int numberOfFieldComponents=3;
165 for(
int n=
ex, nt=ext;
n<
ex+numberOfFieldComponents;
n++,nt++ )
184 ((OGTrigFunction*)
tz)->setShifts(
gx,
gy,
gz,
gt);
186 ((OGTrigFunction*)
tz)->setConstants(
cc);