#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "global.h"
Go to the source code of this file.
◆ HaltConditionCheck()
bool HaltConditionCheck |
( |
double | value | ) |
|
Definition at line 27 of file Halt.c.
27 {
28
30 printf(
"Halt condition met at step = %d with Vrms = %.16f\n",
stepCount, value);
31 fprintf(
fpresult,
"Halt condition met at step = %d with Vrms = %.16f\n",
stepCount, value);
32 fprintf(
fpresult,
"Final thermodynamic values:\n");
33 fprintf(
fpresult,
"%0.4lf\t%0.16lf\t%0.16lf\t%0.16lf\t%0.16lf\t%0.16lf\t%0.16lf\t%0.16lf\t%0.16lf\n",
35 return true;
36 }
37 return false;
38}
References BondEnergyPerAtom, fpresult, HaltCondition, kinEnergy, potEnergy, pressure, stepCount, timeNow, totEnergy, uSumPairPerAtom, virSum, and vSum.
Referenced by main().