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
bb38c7ee
Commit
bb38c7ee
authored
2 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
assert, comment
parent
81bc14c7
No related branches found
No related tags found
1 merge request
!1282
simplify AlphaScan
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sim/Scan/QzScan.cpp
+3
-3
3 additions, 3 deletions
Sim/Scan/QzScan.cpp
with
3 additions
and
3 deletions
Sim/Scan/QzScan.cpp
+
3
−
3
View file @
bb38c7ee
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
#include
"Sim/Scan/QzScan.h"
#include
"Sim/Scan/QzScan.h"
#include
"Base/Axis/FixedBinAxis.h"
#include
"Base/Axis/FixedBinAxis.h"
#include
"Base/Axis/PointwiseAxis.h"
#include
"Base/Axis/PointwiseAxis.h"
#include
"Base/Util/Assert.h"
#include
"Device/Coord/CoordSystem1D.h"
#include
"Device/Coord/CoordSystem1D.h"
#include
"Device/Pol/PolFilter.h"
#include
"Device/Pol/PolFilter.h"
#include
"Param/Distrib/ParameterSample.h"
#include
"Param/Distrib/ParameterSample.h"
...
@@ -89,9 +90,8 @@ std::vector<SpecularElement> QzScan::generateElements() const
...
@@ -89,9 +90,8 @@ std::vector<SpecularElement> QzScan::generateElements() const
std
::
vector
<
double
>
QzScan
::
footprint
(
size_t
i
,
size_t
n_elements
)
const
std
::
vector
<
double
>
QzScan
::
footprint
(
size_t
i
,
size_t
n_elements
)
const
{
{
if
(
i
+
n_elements
>
nSteps
())
ASSERT
(
i
+
n_elements
<=
nSteps
());
throw
std
::
runtime_error
(
"Error in QzScan::footprint: given index exceeds the "
// There is no way to set a footprint correction for q scans.
"number of simulation elements"
);
return
std
::
vector
<
double
>
(
n_elements
,
1.0
);
return
std
::
vector
<
double
>
(
n_elements
,
1.0
);
}
}
...
...
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