votca 2024.2-dev
|
Base class for all calculators. More...
#include <calculator.h>
Public Member Functions | |
Calculator ()=default | |
virtual | ~Calculator ()=default |
virtual std::string | Identify () const =0 |
Calculator name. | |
virtual std::string | Package () const =0 |
Package name. | |
virtual void | Initialize (const Property &user_options)=0 |
Initializes a calculator from an XML file with options. | |
void | setnThreads (Index nThreads) |
Sets number of threads to use. | |
Protected Attributes | |
Index | nThreads_ |
bool | maverick_ |
Base class for all calculators.
Calculators are grouped in CalculatorFactories and are run by Threads or Applications. Every calculator has a description (an XML file) installed in VOTCASHARE which is used to compile HELP. This XML file also contains default values.
Definition at line 40 of file calculator.h.
|
default |
|
virtualdefault |
|
pure virtual |
Calculator name.
This name is used to register a calculator in a Factory It the name of the XML file with the default calculator options stored in VOTCASHARE
Implemented in votca::xtp::APDFT, votca::xtp::Coupling, votca::xtp::DensityAnalysis, votca::xtp::DftGwBse, votca::xtp::Diabatization, votca::xtp::EAnalyze, votca::xtp::EInternal, votca::xtp::EQM, votca::xtp::ExcitonCoupling, votca::xtp::GenCube, votca::xtp::GPUBenchmark, votca::xtp::IAnalyze, votca::xtp::IEXCITON, votca::xtp::IQM, votca::xtp::JobCalculator, votca::xtp::KMCLifetime, votca::xtp::KMCMultiple, votca::xtp::Log2Mps, votca::xtp::MapChecker, votca::xtp::Mol2Orb, votca::xtp::MolPol, votca::xtp::Neighborlist, votca::xtp::Orb2Fchk, votca::xtp::Orb2Mol, votca::xtp::ParallelXJobCalc< JobContainer >, votca::xtp::ParallelXJobCalc< std::vector< Job > >, votca::xtp::Partialcharges, votca::xtp::QMCalculator, votca::xtp::QMMM, votca::xtp::QMTool, votca::xtp::Spectrum, and votca::xtp::VAverage.
|
pure virtual |
Initializes a calculator from an XML file with options.
Options are passed to a calculator by the Application These option overwrite defaults
user_options | Property object passed by the application to a calculator |
Implemented in votca::xtp::JobCalculator, votca::xtp::QMCalculator, and votca::xtp::QMTool.
|
pure virtual |
Package name.
This name is the name of the package the calculator belongs to, e.g. csg, xtp, etc..
Implemented in votca::xtp::JobCalculator, votca::xtp::QMCalculator, and votca::xtp::QMTool.
|
inline |
Sets number of threads to use.
If only one thread is used, this calculator behaves as a master
nThreads | number of threads running this calculator |
Definition at line 83 of file calculator.h.
|
protected |
Definition at line 90 of file calculator.h.
|
protected |
Definition at line 89 of file calculator.h.