23#include <boost/program_options.hpp>
48 void HelpText(ostream &out)
override;
61 std::unique_ptr<CsgApplication::Worker>
ForkWorker()
override {
75 out <<
"Calculate spatially confined rdfs";
81 boost::program_options::value<string>(),
82 " options file defining the rdfs")(
83 "subvolume_radius", boost::program_options::value<double>(),
84 "Rdf calc. in spherical subvolume of this radius (from center of box)")(
85 "do-vol-corr",
"Correct for subvolume truncation in rdf")(
86 "write-every", boost::program_options::value<votca::Index>(&
write_every_),
87 " (UNIMPLEMENTED) write after every block of this length, "
88 "if --blocking is set, the averages are cleared after every output")(
89 "do-blocks",
" write output for blocking analysis");
101 OptionsMap()[
"subvolume_radius"].as<double>());
122int main(
int argc,
char **argv) {
124 app.
Exec(argc, argv);
bool DoThreaded() override
bool EvaluateOptions() override
Process command line options.
std::unique_ptr< CsgApplication::Worker > ForkWorker() override
void MergeWorker(CsgApplication::Worker *worker) override
RDFCalculator rdf_calculator_
void EndEvaluate() override
called after the last frame
void Initialize() override
Initialize application data.
string ProgramName() override
program name
void BeginEvaluate(Topology *top, Topology *top_ref) override
called before the first frame
bool DoMapping() override
overload and return true to enable mapping command line options
bool DoMappingDefault(void) override
if DoMapping is true, will by default require mapping or not
votca::Index write_every_
bool DoTrajectory() override
overload and return true to enable trajectory command line options
bool SynchronizeThreads() override
void HelpText(ostream &out) override
help text of application without version information
Worker, derived from Thread, does the work.
bool EvaluateOptions() override
Process command line options.
void Initialize() override
Initialize application data.
class to calculate distribution functions and cross correlations for inverse monte carlo
std::unique_ptr< CsgApplication::Worker > ForkWorker()
void SetSubvolRadius(double r)
void DoVolumeCorrection(bool do_vol_corr)
void DoBlocks(bool do_blocks)
void BeginEvaluate(Topology *top, Topology *top_atom)
begin coarse graining a trajectory
void EndEvaluate()
end coarse graining a trajectory
void WriteEvery(Index write_every)
void LoadOptions(const std::string &file)
load cg definitions file
void MergeWorker(CsgApplication::Worker *worker_)
topology of the whole system
int main(int argc, char **argv)