BornAgain  1.18.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

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

Detailed Description

Collect the different options for simulation.

SimulationOptions

Definition at line 27 of file SimulationOptions.h.

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

Definition at line 30 of file SimulationOptions.cpp.


The documentation for this class was generated from the following files: