42 string ProgramName()
override {
return "template_threaded_rdf"; }
45 out <<
"template for threaded rdf calculations";
72 std::unique_ptr<CsgApplication::Worker>
ForkWorker(
void)
override;
95int main(
int argc,
char **argv) {
98 return app.
Exec(argc, argv);
104 "c", boost::program_options::value<double>()->default_value(1.0),
118 auto worker = std::make_unique<RDFWorker>();
120 worker->cut_off_ =
OptionsMap()[
"c"].as<
double>();
121 worker->rdf_.Initialize(0, worker->cut_off_, 50);
133 for (
auto &pair : nb) {
143 myRDFWorker =
dynamic_cast<RDFWorker *
>(worker);
bool DoThreaded() override
string ProgramName() override
program name
void MergeWorker(Worker *worker) override
void BeginEvaluate(Topology *top, Topology *top_ref) override
called before the first frame
std::unique_ptr< CsgApplication::Worker > ForkWorker(void) override
void HelpText(ostream &out) override
help text of application without version information
votca::tools::HistogramNew rdf_
bool DoTrajectory() override
overload and return true to enable trajectory command line options
void Initialize() override
Initialize application data.
void EndEvaluate() override
called after the last frame
votca::tools::HistogramNew rdf_
void EvalConfiguration(Topology *, Topology *) override
overload with the actual computation
~RDFWorker() override=default
Index Generate(Topology &top, const std::string &select)
Select all beads of type "select".
Worker, derived from Thread, does the work.
void Initialize() override
Initialize application data.
void Generate(BeadList &list1, BeadList &list2, bool do_exclusions=true) override
Generate the neighbour list based on two bead lists (e.g. bead types)
void setCutoff(double cutoff)
set the cutoff for the neighbour search
topology of the whole system
int main(int argc, char **argv)