1#ifndef OPTIMIZATION_STATUSFUNCTION_HPP
2#define OPTIMIZATION_STATUSFUNCTION_HPP
6#include "brains/Stats.hpp"
7#include "io/DumpWriter.hpp"
8#include "io/StatWriter.hpp"
28 stats =
new Stats(info_);
30 Stats::StatsBitSet mask;
31 mask.set(Stats::TIME);
32 mask.set(Stats::POTENTIAL_ENERGY);
33 stats->setStatsMask(mask);
34 statWriter =
new StatWriter(info_->getStatFileName(), stats);
37 virtual void writeStatus(
int functionCount,
int,
40 curSnapshot->setTime(functionCount);
41 stats->collectStats();
42 statWriter->writeStat();
44 dumpWriter->writeDumpAndEor();
Dynamically-sized vector class.
One of the heavy-weight classes of OpenMD, SimInfo maintains objects and variables relating to the cu...
SnapshotManager * getSnapshotManager()
Returns the snapshot manager.
The Snapshot class is a repository storing dynamic data during a Simulation.
Snapshot * getCurrentSnapshot()
Returns the pointer of current snapshot.
A configurable Statistics Writer.
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.