BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SimulationOptions Class Reference

Collect the different options for simulation. More...

Public Member Functions

unsigned getCurrentBatch () const
 
unsigned getHardwareConcurrency () const
 
size_t getMcPoints () const
 
unsigned getNumberOfBatches () const
 
unsigned getNumberOfThreads () const
 
bool includeSpecular () const
 
bool isIntegrate () const
 
void setIncludeSpecular (bool include_specular)
 
void setMonteCarloIntegration (bool flag=true, size_t mc_points=50)
 Enables/disables MonetCarlo integration. More...
 
void setNumberOfBatches (int nbatches)
 Sets number of batches to split.
 
void setNumberOfThreads (int nthreads)
 Sets number of threads to use during the simulation (0 - take the default value from the hardware)
 
void setThreadInfo (const ThreadInfo &thread_info)
 Sets the batch and thread information to be used.
 
void setUseAvgMaterials (bool use_avg_materials)
 
bool useAvgMaterials () const
 

Detailed Description

Collect the different options for simulation.

SimulationOptions

Member Function Documentation

◆ setMonteCarloIntegration()

void SimulationOptions::setMonteCarloIntegration ( bool  flag = true,
size_t  mc_points = 50 
)

Enables/disables MonetCarlo integration.

Parameters
flagIf true, MonteCarlo integration will be used, otherwise analytical calculations
mc_pointsNumber of points for MonteCarlo integrator