AutoPas  3.0.0
Loading...
Searching...
No Matches
Newton3Option.h
Go to the documentation of this file.
1
7#pragma once
8
9#include <set>
10
11#include "Option.h"
12
13namespace autopas {
14inline namespace options {
18class Newton3Option : public Option<Newton3Option> {
19 public:
23 enum Value {
32 };
33
37 Newton3Option() = default;
38
43 constexpr Newton3Option(Value option) : _value(option) {}
44
49 constexpr operator Value() const { return _value; }
50
55 static std::set<Newton3Option> getDiscouragedOptions() { return {}; }
56
61 static std::map<Newton3Option, std::string> getOptionNames() {
62 return {
63 {Newton3Option::disabled, "disabled"},
64 {Newton3Option::enabled, "enabled"},
65 };
66 };
67
68 private:
69 Value _value{Value(-1)};
70};
71} // namespace options
72} // namespace autopas
Class representing the choices for the Newton 3 optimization.
Definition: Newton3Option.h:18
Value
Possible choices for the Newton3 optimization.
Definition: Newton3Option.h:23
@ disabled
Calculate F_{ij} and F_{ji} individually.
Definition: Newton3Option.h:27
@ enabled
Use F_{ij} = -F_{ji}.
Definition: Newton3Option.h:31
Newton3Option()=default
Constructor.
static std::set< Newton3Option > getDiscouragedOptions()
Set of options that are very unlikely to be interesting.
Definition: Newton3Option.h:55
static std::map< Newton3Option, std::string > getOptionNames()
Provides a way to iterate over the possible choices of TraversalOption.
Definition: Newton3Option.h:61
constexpr Newton3Option(Value option)
Constructor from value.
Definition: Newton3Option.h:43
Base class for autopas options.
Definition: Option.h:25
This is the main namespace of AutoPas.
Definition: AutoPasDecl.h:32