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
19e7b1b6
Commit
19e7b1b6
authored
2 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
corr typo => improve err msgs
parent
45897cd2
No related branches found
No related tags found
1 merge request
!1303
simplifications of resolution handling; resolve warnings
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sim/Scan/AlphaScan.cpp
+3
-4
3 additions, 4 deletions
Sim/Scan/AlphaScan.cpp
with
3 additions
and
4 deletions
Sim/Scan/AlphaScan.cpp
+
3
−
4
View file @
19e7b1b6
...
...
@@ -128,13 +128,12 @@ CoordSystem1D* AlphaScan::scanCoordSystem() const
void
AlphaScan
::
checkInitialization
()
{
if
(
wavelength
()
<=
0.0
)
throw
std
::
runtime_error
(
"Error in AlphaScan::checkInitialization: wavelength shell be positive"
);
throw
std
::
runtime_error
(
"AlphaScan called with invalid wavelength: is not > 0"
);
const
std
::
vector
<
double
>
axis_values
=
m_axis
->
binCenters
();
if
(
!
std
::
is_sorted
(
axis_values
.
begin
(),
axis_values
.
end
()))
throw
std
::
runtime_error
(
"
Error in AlphaScan::checkInitialization: q-vector values
"
"
shall be
sorted in ascending order
.
"
);
throw
std
::
runtime_error
(
"
AlphaScan called with invalid alpha_i vector:
"
"
is not
sorted in ascending order"
);
// TODO: check for inclination angle limits after switching to pointwise resolution.
}
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