20 |
|
sprintf( painCave.errMsg, |
21 |
|
" Ghost Bend error: Atom # %d of type \"%s\" is not " |
22 |
|
"directional.\n", |
23 |
< |
b.getIndex(), |
24 |
< |
b.getType() ); |
23 |
> |
b.getLocalIndex(), |
24 |
> |
b.getType().c_str() ); |
25 |
|
painCave.isFatal = 1; |
26 |
|
simError(); |
27 |
|
} |
48 |
|
double daxi, dayi, dazi, daxk, dayk, dazk, daxj, dayj, dazj; |
49 |
|
Vector3d u; |
50 |
|
|
51 |
< |
double aR[3], bR[3]; |
52 |
< |
double aF[3], bF[3], bTrq[3]; |
51 |
> |
Vector3d aR, bR; |
52 |
> |
Vector3d aF, bF, bTrq; |
53 |
|
|
54 |
|
aR = c_p_a->getPos(); |
55 |
|
bR = atomB->getPos(); |
59 |
|
dy = aR[1] - bR[1]; |
60 |
|
dz = aR[2] - bR[2]; |
61 |
|
|
62 |
< |
u = atomB->getU(); |
62 |
> |
u = atomB->getUnitVector(); |
63 |
|
|
64 |
|
gx = u[0]; |
65 |
|
gy = u[1]; |