Skip to content
Snippets Groups Projects
Commit 356a80c5 authored by Beerwerth, Randolf's avatar Beerwerth, Randolf
Browse files

Revert C++17

parent d5ab36cb
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ project(BornAgain ...@@ -20,7 +20,7 @@ project(BornAgain
# TODO modernize FindCerf to get rid of AssertLibraryFunction to restore restriction to CXX # TODO modernize FindCerf to get rid of AssertLibraryFunction to restore restriction to CXX
set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 14)
include(CTest) # equivalent to "enable_testing() ??? include(CTest) # equivalent to "enable_testing() ???
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} -LE Fullcheck) add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} -LE Fullcheck)
......
...@@ -194,7 +194,9 @@ void SpecularMagneticStrategy::propagateBackwardsForwards( ...@@ -194,7 +194,9 @@ void SpecularMagneticStrategy::propagateBackwardsForwards(
coeff[i].m_w_min = l * coeff[i + 1].m_w_min; coeff[i].m_w_min = l * coeff[i + 1].m_w_min;
// rotate and normalize polarization // rotate and normalize polarization
const auto [S, norm] = findNormalizationCoefficients(coeff[i]); const auto Snorm = findNormalizationCoefficients(coeff[i]);
auto S = Snorm.first;
auto norm = Snorm.second;
SMatrices[i] = S; SMatrices[i] = S;
Normalization[i] = norm; Normalization[i] = norm;
......
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