15 #ifndef BORNAGAIN_CORE_COMPUTATION_ICOMPUTATION_H
16 #define BORNAGAIN_CORE_COMPUTATION_ICOMPUTATION_H
Defines and implements interface class ComputationStatus.
Defines class SimulationOptions.
Completion status (flag and text) of a numeric computation.
std::string errorMessage() const
Interface for a single-threaded computation with given range of SimulationElements and ProgressHandle...
std::unique_ptr< ProcessedSample > mP_processed_sample
IComputation(const MultiLayer &sample, const SimulationOptions &options, ProgressHandler &progress)
ProgressHandler * mp_progress
virtual void runProtected()=0
SimulationOptions m_sim_options
ComputationStatus m_status
std::string errorMessage() const
Our sample model: a stack of layers one below the other.
Data structure that contains all the necessary data for scattering calculations.
Maintains information about progress of a computation.
Collect the different options for simulation.