Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
9e9c9d49
Commit
9e9c9d49
authored
3 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rename var
parent
2d822664
No related branches found
No related tags found
1 merge request
!186
IComputation owns ProcessedSample, no more need to pass forcePolarized flags
Pipeline
#41091
failed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tests/UnitTests/Core/Fresnel/KzComputationTest.cpp
+7
-7
7 additions, 7 deletions
Tests/UnitTests/Core/Fresnel/KzComputationTest.cpp
with
7 additions
and
7 deletions
Tests/UnitTests/Core/Fresnel/KzComputationTest.cpp
+
7
−
7
View file @
9e9c9d49
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment