23 : m_mc_integration(false)
24 , m_include_specular(false)
25 , m_use_avg_materials(false)
28 if (
const char* env_p =
std::getenv(
"BA_NTHREADS")) {
84 return std::thread::hardware_concurrency();
Defines the macro ASSERT.
#define ASSERT(condition)
Defines class SimulationOptions.
void setNumberOfBatches(int nbatches)
Sets number of batches to split.
unsigned getNumberOfBatches() const
unsigned getCurrentBatch() const
unsigned getHardwareConcurrency() const
unsigned getNumberOfThreads() const
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.
std::string getenv(const std::string &name)
Returns environment variable.