16 SolverSettings(
bool debug, std::string dimension, std::string meshName,
int timeSteps, std::string volumeSelection)
17 : _debug(debug), _dimension(dimension), _meshName(meshName), _timeSteps(timeSteps),_volumeSelection(volumeSelection)
20 if (system.CPUSupportsAVX512())
24 else if(system.CPUSupportsAVX2())
26 _activeAlignment =
AVX2;
34 const bool GetDebug(
void)
const {
return _debug; }
35 const std::string
GetMeshName(
void)
const {
return _meshName; }
44 std::string settings =
45 "Running solver version " +
SolverVersion +
" with solver settings: \n"
46 "Calculating " + std::to_string(_timeSteps) +
" time steps. \n" +
48 "Active threads: " + std::to_string(_activeThreads) +
"\n";
55 std::string _dimension;
56 std::string _meshName;
58 std::string _volumeSelection;
Alignment
Definition Allignments.h:3
@ AVX
Definition Allignments.h:3
@ AVX2
Definition Allignments.h:3
@ AVX512
Definition Allignments.h:3
@ CacheLine64
Definition Allignments.h:3
static const std::string SolverVersion
Definition SolverVersion.h:14
Definition SolverSettings.h:8
std::string Print()
Definition SolverSettings.h:42
const Alignment GetAlignment(void) const
Definition SolverSettings.h:36
SolverSettings(bool debug, std::string dimension, std::string meshName, int timeSteps, std::string volumeSelection)
Definition SolverSettings.h:16
void SetActiveNumberOfThreads(int threads)
Definition SolverSettings.h:38
Dimension
Definition SolverSettings.h:10
@ UNKOWN
Definition SolverSettings.h:10
@ D3
Definition SolverSettings.h:10
const int GetSimulationSteps(void) const
Definition SolverSettings.h:37
VolumeSelection
Definition SolverSettings.h:11
@ UNKNOWN
Definition SolverSettings.h:11
@ Full
Definition SolverSettings.h:11
SolverSettings()
Definition SolverSettings.h:14
std::map< Alignment, std::string > alignmentName
Definition SolverSettings.h:12
const bool GetDebug(void) const
Definition SolverSettings.h:34
const std::string GetMeshName(void) const
Definition SolverSettings.h:35
static const SystemProperties & GetInstance()
Definition SystemProperties.h:28