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
197a6a69
Commit
197a6a69
authored
2 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
more expressive var name
parent
4e107928
No related branches found
No related tags found
1 merge request
!1142
simplify ISimulation2D and IDetector, improve comments
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sim/Simulation/ISimulation2D.cpp
+2
-2
2 additions, 2 deletions
Sim/Simulation/ISimulation2D.cpp
with
2 additions
and
2 deletions
Sim/Simulation/ISimulation2D.cpp
+
2
−
2
View file @
197a6a69
...
@@ -93,7 +93,7 @@ std::vector<DiffuseElement> ISimulation2D::generateElements(const Beam& beam)
...
@@ -93,7 +93,7 @@ std::vector<DiffuseElement> ISimulation2D::generateElements(const Beam& beam)
const
SpinMatrix
beam_polMatrices
=
beam
.
polMatrix
();
const
SpinMatrix
beam_polMatrices
=
beam
.
polMatrix
();
const
SpinMatrix
analyzer_operator
=
m_detector
->
analyzer
().
matrix
();
const
SpinMatrix
analyzer_operator
=
m_detector
->
analyzer
().
matrix
();
const
size_t
spec
_index
=
m_detector
->
indexOfSpecular
(
beam
);
const
size_t
i_
spec
ular
=
m_detector
->
indexOfSpecular
(
beam
);
const
size_t
N
=
m_detector_context
->
numberOfElements
();
const
size_t
N
=
m_detector_context
->
numberOfElements
();
...
@@ -102,7 +102,7 @@ std::vector<DiffuseElement> ISimulation2D::generateElements(const Beam& beam)
...
@@ -102,7 +102,7 @@ std::vector<DiffuseElement> ISimulation2D::generateElements(const Beam& beam)
for
(
size_t
i
=
0
;
i
<
N
;
++
i
)
for
(
size_t
i
=
0
;
i
<
N
;
++
i
)
result
.
emplace_back
(
DiffuseElement
(
result
.
emplace_back
(
DiffuseElement
(
wavelength
,
alpha_i
,
phi_i
,
m_detector_context
->
createPixel
(
i
),
beam_polMatrices
,
wavelength
,
alpha_i
,
phi_i
,
m_detector_context
->
createPixel
(
i
),
beam_polMatrices
,
analyzer_operator
,
m_detector_context
->
detectorIndex
(
i
)
==
spec
_index
));
analyzer_operator
,
m_detector_context
->
detectorIndex
(
i
)
==
i_
spec
ular
));
return
result
;
return
result
;
}
}
...
...
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