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
a755511c
Commit
a755511c
authored
3 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rm unused copy=
parent
eb7fe05f
No related branches found
No related tags found
1 merge request
!232
Cleanup in context of Simulation, Computation; *Element now inherits from IElement
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Core/Element/DepthProbeElement.cpp
+0
-18
0 additions, 18 deletions
Core/Element/DepthProbeElement.cpp
Core/Element/DepthProbeElement.h
+1
-3
1 addition, 3 deletions
Core/Element/DepthProbeElement.h
with
1 addition
and
21 deletions
Core/Element/DepthProbeElement.cpp
+
0
−
18
View file @
a755511c
...
@@ -53,25 +53,7 @@ DepthProbeElement::DepthProbeElement(DepthProbeElement&& other) noexcept
...
@@ -53,25 +53,7 @@ DepthProbeElement::DepthProbeElement(DepthProbeElement&& other) noexcept
DepthProbeElement
::~
DepthProbeElement
()
=
default
;
DepthProbeElement
::~
DepthProbeElement
()
=
default
;
DepthProbeElement
&
DepthProbeElement
::
operator
=
(
const
DepthProbeElement
&
other
)
{
if
(
this
!=
&
other
)
{
DepthProbeElement
tmp
(
other
);
tmp
.
swapContent
(
*
this
);
}
return
*
this
;
}
kvector_t
DepthProbeElement
::
getKi
()
const
kvector_t
DepthProbeElement
::
getKi
()
const
{
{
return
vecOfLambdaAlphaPhi
(
m_wavelength
,
m_alpha_i
,
phi_i_0
);
return
vecOfLambdaAlphaPhi
(
m_wavelength
,
m_alpha_i
,
phi_i_0
);
}
}
void
DepthProbeElement
::
swapContent
(
DepthProbeElement
&
other
)
{
std
::
swap
(
m_wavelength
,
other
.
m_wavelength
);
std
::
swap
(
m_alpha_i
,
other
.
m_alpha_i
);
m_intensities
.
swap
(
other
.
m_intensities
);
std
::
swap
(
m_z_positions
,
other
.
m_z_positions
);
std
::
swap
(
m_calculation_flag
,
other
.
m_calculation_flag
);
}
This diff is collapsed.
Click to expand it.
Core/Element/DepthProbeElement.h
+
1
−
3
View file @
a755511c
...
@@ -34,7 +34,7 @@ public:
...
@@ -34,7 +34,7 @@ public:
~
DepthProbeElement
();
~
DepthProbeElement
();
DepthProbeElement
&
operator
=
(
const
DepthProbeElement
&
other
);
DepthProbeElement
&
operator
=
(
const
DepthProbeElement
&
other
)
=
delete
;
double
wavelength
()
const
{
return
m_wavelength
;
}
double
wavelength
()
const
{
return
m_wavelength
;
}
double
getAlphaI
()
const
{
return
m_alpha_i
;
}
double
getAlphaI
()
const
{
return
m_alpha_i
;
}
...
@@ -60,8 +60,6 @@ public:
...
@@ -60,8 +60,6 @@ public:
bool
isCalculated
()
const
{
return
m_calculation_flag
;
}
bool
isCalculated
()
const
{
return
m_calculation_flag
;
}
private
:
private
:
void
swapContent
(
DepthProbeElement
&
other
);
double
m_wavelength
,
m_alpha_i
;
//!< the wavelength and the incident angle of the beam
double
m_wavelength
,
m_alpha_i
;
//!< the wavelength and the incident angle of the beam
std
::
valarray
<
double
>
m_intensities
;
//!< simulated intensity for the set of z positions
std
::
valarray
<
double
>
m_intensities
;
//!< simulated intensity for the set of z positions
const
IAxis
*
m_z_positions
;
//!< positions (lower z corresponds to a greater depth)
const
IAxis
*
m_z_positions
;
//!< positions (lower z corresponds to a greater depth)
...
...
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