46 |
|
|
47 |
|
checkConstraints(); |
48 |
|
|
49 |
– |
for (i=0; i<nMols; i++) |
50 |
– |
zAngle[i] = 0.0; |
49 |
|
} |
50 |
|
|
51 |
|
template<typename T> Integrator<T>::~Integrator(){ |
185 |
|
tStats->removeCOMdrift(); |
186 |
|
|
187 |
|
// initialize the retraints if necessary |
188 |
< |
if (info->useThermInt) { |
188 |
> |
if (info->useSolidThermInt && !info->useLiquidThermInt) { |
189 |
|
myFF->initRestraints(); |
190 |
|
} |
191 |
|
|
255 |
|
|
256 |
|
if (info->getTime() >= currStatus){ |
257 |
|
statOut->writeStat(info->getTime()); |
260 |
– |
statOut->writeRaw(info->getTime()); |
258 |
|
calcPot = 0; |
259 |
|
calcStress = 0; |
260 |
|
currStatus += statusTime; |
278 |
|
} |
279 |
|
|
280 |
|
// dump out a file containing the omega values for the final configuration |
281 |
< |
if (info->useThermInt) |
281 |
> |
if (info->useSolidThermInt && !info->useLiquidThermInt) |
282 |
|
myFF->dumpzAngle(); |
283 |
|
|
284 |
|
|
316 |
|
MPIcheckPoint(); |
317 |
|
#endif // is_mpi |
318 |
|
|
322 |
– |
|
319 |
|
// calc forces |
324 |
– |
|
320 |
|
calcForce(calcPot, calcStress); |
321 |
|
|
322 |
|
#ifdef IS_MPI |
351 |
|
double Tb[3], ji[3]; |
352 |
|
double vel[3], pos[3], frc[3]; |
353 |
|
double mass; |
354 |
+ |
double omega; |
355 |
|
|
356 |
|
for (i = 0; i < integrableObjects.size() ; i++){ |
357 |
|
integrableObjects[i]->getVel(vel); |
735 |
|
|
736 |
|
// rotate about the z-axis |
737 |
|
angle = dt * ji[2] / I[2][2]; |
738 |
+ |
sd->addZangle(angle); |
739 |
|
this->rotate( 0, 1, angle, ji, A); |
740 |
|
|
741 |
|
// rotate about the y-axis |