Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mlz
BornAgain
Commits
96abcaa0
Commit
96abcaa0
authored
Jun 12, 2022
by
Wuttke, Joachim
Browse files
short local variable
parent
e0021a2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Sim/Simulation/ISimulation2D.cpp
View file @
96abcaa0
...
...
@@ -98,11 +98,11 @@ std::vector<std::unique_ptr<DiffuseElement>> ISimulation2D::generateElements(con
std
::
vector
<
std
::
unique_ptr
<
DiffuseElement
>>
result
;
result
.
reserve
(
N
);
for
(
size_t
element_index
=
0
;
element_index
<
N
;
++
element_index
)
for
(
size_t
i
=
0
;
i
<
N
;
++
i
)
result
.
emplace_back
(
std
::
make_unique
<
DiffuseElement
>
(
wavelength
,
alpha_i
,
phi_i
,
m_detector_context
->
createPixel
(
element_index
),
wavelength
,
alpha_i
,
phi_i
,
m_detector_context
->
createPixel
(
i
),
beam_polMatrices
,
analyzer_operator
,
m_detector_context
->
detectorIndex
(
element_index
)
==
spec_index
));
m_detector_context
->
detectorIndex
(
i
)
==
spec_index
));
return
result
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment