Skip to content
Snippets Groups Projects
Commit e4687ec7 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

ScatteringSimulation::generateElements -> const

parent 10cd19b1
No related branches found
No related tags found
1 merge request!1272Consolidate simulation classes; don't wrap SpinMatrix in PolMatrices
Pipeline #85799 passed
......@@ -186,7 +186,7 @@ SimulationResult ScatteringSimulation::packResult()
return {*data, *coordsys};
}
std::vector<DiffuseElement> ScatteringSimulation::generateElements(const Beam& beam)
std::vector<DiffuseElement> ScatteringSimulation::generateElements(const Beam& beam) const
{
const double wavelength = beam.wavelength();
const double alpha_i = beam.alpha_i();
......
......@@ -97,7 +97,7 @@ private:
SimulationResult packResult() override;
//... Local function:
std::vector<DiffuseElement> generateElements(const Beam& beam);
std::vector<DiffuseElement> generateElements(const Beam& beam) const;
//... Model components:
std::shared_ptr<Beam> m_beam;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment