Skip to content
Snippets Groups Projects
Commit 90c8f932 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: do not return int in material scans

parent 06f1be75
No related branches found
No related tags found
1 merge request!148fix: do not return int in material scans
......@@ -52,19 +52,19 @@ void materialScanEta(
// check inputs
if (etamin > etamax) {
std::cout << "Error: ordered eta range required" << std::endl;
return -1;
return;
}
if (rhomax <= 0.0) {
std::cout << "Error: positive rhomax required" << std::endl;
return -1;
return;
}
if (znmax <= 0.0) {
std::cout << "Error: positive znmax required" << std::endl;
return -1;
return;
}
if (zpmax <= 0.0) {
std::cout << "Error: positive zpmax required" << std::endl;
return -1;
return;
}
// get material scans
......
......@@ -21,23 +21,23 @@ void materialScanEtaPhi(
// check inputs
if (etamin > etamax) {
std::cout << "Error: ordered eta range required" << std::endl;
return -1;
return;
}
if (phimin > phimax) {
std::cout << "Error: ordered phi range required" << std::endl;
return -1;
return;
}
if (rhomax <= 0.0) {
std::cout << "Error: positive rhomax required" << std::endl;
return -1;
return;
}
if (znmax <= 0.0) {
std::cout << "Error: positive znmax required" << std::endl;
return -1;
return;
}
if (zpmax <= 0.0) {
std::cout << "Error: positive zpmax required" << std::endl;
return -1;
return;
}
// get material scans
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment