Scine::Swoose  2.1.0
This is the SCINE module Swoose.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
QmmmCalculatorSettings.h
Go to the documentation of this file.
1 
8 #ifndef SWOOSE_QMMM_QMMMCALCULATORSETTINGS_H
9 #define SWOOSE_QMMM_QMMMCALCULATORSETTINGS_H
10 
12 
13 namespace Scine {
14 namespace Qmmm {
15 
21  public:
23  void addExternalSettings(const Utils::Settings& externalSettings);
27  QmmmCalculatorSettings() : Settings("QmmmCalculatorSettings") {
28  using namespace SwooseUtilities;
29  SettingsPopulator::addQmAtomsOption(_fields);
30  SettingsPopulator::addElectrostaticEmbeddingOption(_fields);
31  SettingsPopulator::addQmRegionXyzFileOption(_fields);
32  SettingsPopulator::addIgnoreQmOption(_fields);
33  SettingsPopulator::addChargeRedistributionOption(_fields);
34  SettingsPopulator::addReducedQmMmEnergyOption(_fields);
35  SettingsPopulator::addOptimizeLinksOption(_fields);
36  SettingsPopulator::addSilenceOption(_fields);
37  resetToDefaults();
38  };
39 };
40 
41 inline void QmmmCalculatorSettings::addExternalSettings(const Utils::Settings& externalSettings) {
42  for (const auto& d : externalSettings.getDescriptorCollection()) {
43  if (_fields.exists(d.first)) {
44  continue;
45  }
46  _fields.push_back(d.first, d.second);
47  this->addGenericValue(d.first, d.second.getDefaultValue());
48  }
49 }
50 
51 } // namespace Qmmm
52 } // namespace Scine
53 
54 #endif // SWOOSE_QMMM_QMMMCALCULATORSETTINGS_H
QmmmCalculatorSettings()
Constructor that populates the QmmmCalculatorSettings.
Definition: QmmmCalculatorSettings.h:27
void addExternalSettings(const Utils::Settings &externalSettings)
Populates the settings with the default settings of the given external settings object.
Definition: QmmmCalculatorSettings.h:41
Settings for QM/MM calculations.
Definition: QmmmCalculatorSettings.h:20