| 1 |
+ |
#include <math.h> |
| 2 |
+ |
|
| 3 |
|
#include "Atom.hpp" |
| 4 |
|
#include "SRI.hpp" |
| 5 |
|
#include "AbstractClasses.hpp" |
| 271 |
|
|
| 272 |
|
conservedQuantity = Energy + thermostat_kinetic + thermostat_potential; |
| 273 |
|
|
| 272 |
– |
cerr << info->getTime() << "\t" << Energy << "\t" << thermostat_kinetic << |
| 273 |
– |
"\t" << thermostat_potential << "\t" << conservedQuantity << endl; |
| 274 |
– |
|
| 274 |
|
return conservedQuantity; |
| 275 |
|
} |
| 276 |
|
|
| 279 |
|
const int BUFFERSIZE = 2000; // size of the read buffer |
| 280 |
|
char buffer[BUFFERSIZE]; |
| 281 |
|
|
| 282 |
< |
sprintf(buffer,"\t%g\t%g;", chi, integralOfChidt); |
| 282 |
> |
sprintf(buffer,"\t%G\t%G;", chi, integralOfChidt); |
| 283 |
|
parameters += buffer; |
| 284 |
|
|
| 285 |
|
return parameters; |