From 90c8f932174119dbaf46c6e9bf812e59255e9416 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck <wdconinc@gmail.com> Date: Mon, 21 Aug 2023 16:17:36 +0000 Subject: [PATCH] fix: do not return int in material scans --- benchmarks/others/materialScanEta.cxx | 8 ++++---- benchmarks/others/materialScanEtaPhi.cxx | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/benchmarks/others/materialScanEta.cxx b/benchmarks/others/materialScanEta.cxx index 525bd51c..1dc43c3f 100644 --- a/benchmarks/others/materialScanEta.cxx +++ b/benchmarks/others/materialScanEta.cxx @@ -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 diff --git a/benchmarks/others/materialScanEtaPhi.cxx b/benchmarks/others/materialScanEtaPhi.cxx index dc670558..5051ca1b 100644 --- a/benchmarks/others/materialScanEtaPhi.cxx +++ b/benchmarks/others/materialScanEtaPhi.cxx @@ -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 -- GitLab