24#include <boost/program_options.hpp>
39 void HelpText(ostream &out)
override;
52 std::unique_ptr<CsgApplication::Worker>
ForkWorker()
override {
53 return imc_.ForkWorker();
57 imc_.MergeWorker(worker);
67 out <<
"Calculate all distributions (bonded and non-bonded) specified in "
69 "Optionally (--do-imc) writes the matrices for an inverse Monte "
71 "update, which csg_imc_solve solves.";
77 boost::program_options::value<string>(),
78 " options file for coarse graining")(
79 "do-imc",
" write out additional Inverse Monte Carlo data")(
80 "include-intra",
" do not exclude intramolecular neighbors")(
81 "block-length", boost::program_options::value<votca::Index>(),
82 " write blocks of this length, the averages are cleared after every "
84 boost::program_options::value<string>(&
extension_)
85 ->default_value(
"dist.new"),
86 "Extension of the output");
107 imc_.IncludeIntra(
true);
117 imc_.BeginEvaluate(top, top_ref);
122int main(
int argc,
char **argv) {
124 return app.
Exec(argc, argv);
void EndEvaluate() override
called after the last frame
votca::Index block_length_
std::unique_ptr< CsgApplication::Worker > ForkWorker() override
void HelpText(ostream &out) override
help text of application without version information
void MergeWorker(CsgApplication::Worker *worker) override
bool DoMapping() override
overload and return true to enable mapping command line options
bool DoThreaded() override
void BeginEvaluate(Topology *top, Topology *top_ref) override
called before the first frame
bool EvaluateOptions() override
Process command line options.
bool DoMappingDefault(void) override
if DoMapping is true, will by default require mapping or not
void Initialize() override
Initialize application data.
bool DoTrajectory() override
overload and return true to enable trajectory command line options
bool SynchronizeThreads() override
string ProgramName() override
program name
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
topology of the whole system
int main(int argc, char **argv)