3 #include "ENL_EKE_Collector.h"
7 extern FILE *
openScreenfWrite(
const char *dirnameBase,
const char *fname,
int temper,
int bead,
bool beadfile);
8 ENL_EKE_Collector::ENL_EKE_Collector(
int _numEnergyInputs,
int _numInstance)
11 temperScreenFile=
openScreenfWrite(
"TEMPER_OUT",
"screen", thisIndex, 0,
false);
13 temperScreenFile=stdout;
16 energyExpected=_numEnergyInputs;
20 void ENL_EKE_Collector::printENL()
23 fprintf(temperScreenFile,
"[%d] ENL = %5.8lf\n", enlIteration++, ENL/(
double) energyExpected);
27 void ENL_EKE_Collector::printEKE()
29 fprintf(temperScreenFile,
"Iter [%d] EKE = %5.8lf\n", ekeIteration++, EKE/(
double) energyExpected);
34 void ENL_EKE_Collector::acceptENL(
double _enl)
38 if(countENL==energyExpected) printENL();
40 void ENL_EKE_Collector::acceptEKE(
double _eke)
44 if(countEKE==energyExpected) printEKE();
48 #include "ENL_EKE_Collector.def.h"
FILE * openScreenfWrite(const char *dirnameBase, const char *fname, int temper, int bead, bool beadfile)
this stuff is in a C file because multiple includes of .def will give you too many implementations of...