32 |
|
|
33 |
|
nAtoms = info->n_atoms; |
34 |
|
integrableObjects = info->integrableObjects; |
35 |
< |
|
35 |
> |
|
36 |
|
// check for constraints |
37 |
|
|
38 |
|
constrainedA = NULL; |
45 |
|
nConstrained = 0; |
46 |
|
|
47 |
|
checkConstraints(); |
48 |
+ |
|
49 |
|
} |
50 |
|
|
51 |
|
template<typename T> Integrator<T>::~Integrator(){ |
183 |
|
// remove center of mass drift velocity (in case we passed in a configuration |
184 |
|
// that was drifting |
185 |
|
tStats->removeCOMdrift(); |
186 |
+ |
|
187 |
+ |
// initialize the retraints if necessary |
188 |
+ |
if (info->useSolidThermInt && !info->useLiquidThermInt) { |
189 |
+ |
myFF->initRestraints(); |
190 |
+ |
} |
191 |
|
|
192 |
|
// initialize the forces before the first step |
193 |
|
|
277 |
|
#endif // is_mpi |
278 |
|
} |
279 |
|
|
280 |
+ |
// dump out a file containing the omega values for the final configuration |
281 |
+ |
if (info->useSolidThermInt && !info->useLiquidThermInt) |
282 |
+ |
myFF->dumpzAngle(); |
283 |
+ |
|
284 |
+ |
|
285 |
|
delete dumpOut; |
286 |
|
delete statOut; |
287 |
|
} |
316 |
|
MPIcheckPoint(); |
317 |
|
#endif // is_mpi |
318 |
|
|
308 |
– |
|
319 |
|
// calc forces |
310 |
– |
|
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 |