BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
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 |
Collect the different options for simulation.
void SimulationOptions::setMonteCarloIntegration | ( | bool | flag = true , |
size_t | mc_points = 50 |
||
) |
Enables/disables MonetCarlo integration.
flag | If true, MonteCarlo integration will be used, otherwise analytical calculations |
mc_points | Number of points for MonteCarlo integrator |