Scine::Readuct  6.0.0
This is the SCINE module ReaDuct.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
ElementaryStepOptimizerSettings.h
Go to the documentation of this file.
1 
8 #ifndef READUCT_ELEMENTARYSTEPOPTIMIZATION_ELEMENTARYSTEPOPTIMIZERSETTINGS_H
9 #define READUCT_ELEMENTARYSTEPOPTIMIZATION_ELEMENTARYSTEPOPTIMIZERSETTINGS_H
10 
11 #include "Utils/Settings.h"
12 
13 namespace Scine {
14 namespace Readuct {
15 namespace ElementaryStepOptimization {
16 
17 static constexpr int numIntegrationPointsDefaultValue = 21;
18 
28 template<class OptimizerType, class ConvergenceCheckType>
30  public:
40  ElementaryStepOptimizerSettings(const OptimizerType& optimizer, const ConvergenceCheckType& check)
41  : Settings("ElementaryStepOptimizerSettings") {
42  optimizer.addSettingsDescriptors(this->_fields);
43  check.addSettingsDescriptors(this->_fields);
44 
45  Utils::UniversalSettings::IntDescriptor numIntegrationPoints(
46  "The number of integration points used to optimize the spline.");
47  numIntegrationPoints.setDefaultValue(numIntegrationPointsDefaultValue);
48  this->_fields.push_back("num_integration_points", numIntegrationPoints);
49 
50  this->resetToDefaults();
51  }
52 };
53 
54 } // namespace ElementaryStepOptimization
55 } // namespace Readuct
56 } // namespace Scine
57 
58 #endif // READUCT_ELEMENTARYSTEPOPTIMIZATION_ELEMENTARYSTEPOPTIMIZERSETTINGS_H
Settings for an ElementaryStepOptimizer.
Definition: ElementaryStepOptimizerSettings.h:29
ElementaryStepOptimizerSettings(const OptimizerType &optimizer, const ConvergenceCheckType &check)
Construct a new ElementaryStepOptimizerSettings object.
Definition: ElementaryStepOptimizerSettings.h:40