15 #ifndef BORNAGAIN_CORE_PARAMETRIZATION_SIMULATIONOPTIONS_H
16 #define BORNAGAIN_CORE_PARAMETRIZATION_SIMULATIONOPTIONS_H
32 bool isIntegrate()
const;
33 size_t getMcPoints()
const {
return m_mc_points; }
44 unsigned getNumberOfThreads()
const;
49 unsigned getNumberOfBatches()
const;
51 unsigned getCurrentBatch()
const;
56 unsigned getHardwareConcurrency()
const;
58 void setIncludeSpecular(
bool include_specular) { m_include_specular = include_specular; }
60 bool includeSpecular()
const {
return m_include_specular; }
62 void setUseAvgMaterials(
bool use_avg_materials) { m_use_avg_materials = use_avg_materials; }
64 bool useAvgMaterials()
const {
return m_use_avg_materials; }
67 bool m_mc_integration;
68 bool m_include_specular;
69 bool m_use_avg_materials;
Defines struct ThreadInfo.
Collect the different options for simulation.
void setNumberOfBatches(int nbatches)
Sets number of batches to split.
void setThreadInfo(const ThreadInfo &thread_info)
Sets the batch and thread information to be used.
void setNumberOfThreads(int nthreads)
Sets number of threads to use during the simulation (0 - take the default value from the hardware)
void setMonteCarloIntegration(bool flag=true, size_t mc_points=50)
Enables/disables MonetCarlo integration.
Information to run simulation with dedicated number of threads.