50 |
|
|
51 |
|
#ifdef IS_MPI |
52 |
|
#include <mpi.h> |
53 |
< |
#endif //is_mpi |
53 |
> |
#endif |
54 |
|
|
55 |
|
using namespace std; |
56 |
|
namespace OpenMD { |
257 |
|
hmat(0, 2), hmat(1, 2), hmat(2, 2)); |
258 |
|
os << buffer; |
259 |
|
|
260 |
< |
RealType chi = s->getChi(); |
261 |
< |
RealType integralOfChiDt = s->getIntegralOfChiDt(); |
262 |
< |
if (isinf(chi) || isnan(chi) || |
263 |
< |
isinf(integralOfChiDt) || isnan(integralOfChiDt)) { |
260 |
> |
pair<RealType, RealType> thermostat = s->getThermostat(); |
261 |
> |
|
262 |
> |
if (isinf(thermostat.first) || isnan(thermostat.first) || |
263 |
> |
isinf(thermostat.second) || isnan(thermostat.second)) { |
264 |
|
sprintf( painCave.errMsg, |
265 |
|
"DumpWriter detected a numerical error writing the thermostat"); |
266 |
|
painCave.isFatal = 1; |
267 |
|
simError(); |
268 |
|
} |
269 |
< |
sprintf(buffer, " Thermostat: %.10g , %.10g\n", chi, integralOfChiDt); |
269 |
> |
sprintf(buffer, " Thermostat: %.10g , %.10g\n", thermostat.first, |
270 |
> |
thermostat.second); |
271 |
|
os << buffer; |
272 |
|
|
273 |
|
Mat3x3d eta; |
274 |
< |
eta = s->getEta(); |
274 |
> |
eta = s->getBarostat(); |
275 |
|
|
276 |
|
for (unsigned int i = 0; i < 3; i++) { |
277 |
|
for (unsigned int j = 0; j < 3; j++) { |