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

rename var

parent 2d822664
No related branches found
No related tags found
1 merge request!186IComputation owns ProcessedSample, no more need to pass forcePolarized flags
Pipeline #41091 failed
......@@ -36,11 +36,11 @@ TEST_F(KzComputationTest, initial)
kvector_t k = vecOfLambdaAlphaPhi(1.0, 1.0 * Units::deg, 0.0);
SimulationOptions options;
ProcessedSample sample(mLayer, options);
ProcessedSample re_sample(mLayer, options);
auto res_ref = SampleUtils::KzComputation::computeReducedKz(sample.slices(), k);
auto res_ri = SampleUtils::KzComputation::computeKzFromRefIndices(sample.slices(), k);
auto res_sld = SampleUtils::KzComputation::computeKzFromSLDs(sample.slices(), k.z());
auto res_ref = SampleUtils::KzComputation::computeReducedKz(re_sample.slices(), k);
auto res_ri = SampleUtils::KzComputation::computeKzFromRefIndices(re_sample.slices(), k);
auto res_sld = SampleUtils::KzComputation::computeKzFromSLDs(re_sample.slices(), k.z());
EXPECT_EQ(res_ref.size(), res_sld.size());
EXPECT_EQ(res_ref.size(), res_ri.size());
......@@ -136,10 +136,10 @@ TEST_F(KzComputationTest, TiNiSampleWithRoughness)
kvector_t k = vecOfLambdaAlphaPhi(1.0, 0.0001 * Units::deg, 0.0);
SimulationOptions options;
ProcessedSample proc_sample(*sample, options);
ProcessedSample re_sample(*sample, options);
auto res_ri = SampleUtils::KzComputation::computeKzFromRefIndices(proc_sample.slices(), k);
auto res_sld = SampleUtils::KzComputation::computeKzFromSLDs(proc_sample.slices(), k.z());
auto res_ri = SampleUtils::KzComputation::computeKzFromRefIndices(re_sample.slices(), k);
auto res_sld = SampleUtils::KzComputation::computeKzFromSLDs(re_sample.slices(), k.z());
EXPECT_EQ(res_ri.size(), res_sld.size());
for (size_t i = 0; i < res_ri.size(); ++i) {
......
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