Skip to content
Snippets Groups Projects
Commit 885c971a authored by Yurov, Dmitry's avatar Yurov, Dmitry
Browse files

Fix for old clang

Redmine: #2155
parent 58972010
No related branches found
No related tags found
No related merge requests found
...@@ -36,25 +36,25 @@ AxisComparisonTest::~AxisComparisonTest() = default; ...@@ -36,25 +36,25 @@ AxisComparisonTest::~AxisComparisonTest() = default;
std::unique_ptr<Simulation> AxisComparisonTest::createSimulation(const IAxis& axis) std::unique_ptr<Simulation> AxisComparisonTest::createSimulation(const IAxis& axis)
{ {
const double wavelength = 1.54 * Units::angstrom; const double wavelength = 1.54 * Units::angstrom;
const size_t n_integration_points = 5; const size_t n_integration_points = 5;
const auto square_ff = std::make_unique<FootprintFactorSquare>(0.1); const auto square_ff = std::make_unique<FootprintFactorSquare>(0.1);
const DistributionGaussian alpha_distr(0.0, 0.1*Units::degree); const DistributionGaussian alpha_distr(0.0, 0.1 * Units::degree);
std::unique_ptr<SpecularSimulation> result(new SpecularSimulation()); std::unique_ptr<SpecularSimulation> result(new SpecularSimulation());
result->setBeamParameters(wavelength, axis, square_ff.get()); result->setBeamParameters(wavelength, axis, square_ff.get());
ParameterPattern pattern; ParameterPattern pattern;
pattern.beginsWith("*").add(BornAgain::BeamType).add(BornAgain::Inclination); pattern.beginsWith("*").add(BornAgain::BeamType).add(BornAgain::Inclination);
result->addParameterDistribution(pattern.toStdString(), alpha_distr, n_integration_points); result->addParameterDistribution(pattern.toStdString(), alpha_distr, n_integration_points);
std::unique_ptr<MultiLayer> sample( std::unique_ptr<MultiLayer> sample(
SampleBuilderFactory().createSample("PlainMultiLayerBySLDBuilder")); SampleBuilderFactory().createSample("PlainMultiLayerBySLDBuilder"));
result->setSample(*sample); result->setSample(*sample);
result->runSimulation(); result->runSimulation();
return result; return std::move(result);
} }
bool AxisComparisonTest::runTest() bool AxisComparisonTest::runTest()
......
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