35 out <<
"Runs job-based heavy-duty calculators\n";
57 std::unique_ptr<xtp::JobCalculator>
calc_ =
nullptr;
61 namespace propt = boost::program_options;
63 " number of openmp threads to create in each thread");
65 propt::value<std::string>()->default_value(
""),
66 " restart pattern: 'host(pc1:234) stat(FAILED)'");
68 " assigns jobs in blocks of this size");
70 propt::value<std::string>()->default_value(
"run"),
71 " task(s) to perform: write, run, read");
73 " maximum number of jobs to process (-1 = inf)");
77 std::string jobstr =
OptionsMap()[
"jobs"].as<std::string>();
79 run_ = (jobstr ==
"run");
95 std::cout << std::endl;
99 std::cout <<
"... " <<
calc_->
Identify() <<
" " << std::flush;
107 std::cout << std::endl;
111int main(
int argc,
char** argv) {
114 return xtprun.
Exec(argc, argv);
xtp::ProgObserver< std::vector< xtp::Job > > progObs_
void AddCommandLineOpt() final
bool EvaluateFrame(votca::xtp::Topology &top) final
std::vector< std::string > CalculatorNames() const
std::string ProgramName() final
program name
std::string CalculatorType() const
std::unique_ptr< xtp::JobCalculator > calc_
void CheckOptions() final
void CreateCalculator(const std::string &name)
void HelpText(std::ostream &out) final
help text of application without version information
bool savetoStateFile() const final
virtual void WriteJobFile(const Topology &top)=0
bool EvaluateFrame(const Topology &top)
std::string Identify() const override=0
Calculator name.
void setProgObserver(ProgObserver< std::vector< Job > > *obs)
void Initialize(const tools::Property &opt) final
Initializes a calculator from an XML file with options.
virtual void ReadJobFile(Topology &top)=0
void setOpenMPThreads(Index ompthreads)
void InitCmdLineOpts(const boost::program_options::variables_map &optsMap)
Container for segments and box and atoms.
votca::tools::Property options_
base class for all analysis tools
int main(int argc, char **argv)