From 6cedcf6a16c3d11f059a4d254a6dbfb2ad29d189 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Fri, 16 Aug 2024 14:53:46 +0200 Subject: [PATCH] remove duplicate checks quells static analyzer warnings --- examples/upscale_cap.cpp | 7 ------- examples/upscale_cond.cpp | 6 ------ examples/upscale_relperm.cpp | 7 ------- 3 files changed, 20 deletions(-) diff --git a/examples/upscale_cap.cpp b/examples/upscale_cap.cpp index 0e90633..2e66bc2 100644 --- a/examples/upscale_cap.cpp +++ b/examples/upscale_cap.cpp @@ -160,13 +160,6 @@ try // Reference: http://www.spe.org/spe-site/spe/spe/papers/authors/Metric_Standard.pdf - /* Check first if there is anything on the command line to look for */ - if (varnum == 1) { - cout << "Error: No Eclipsefile or stonefiles found on command line." << endl; - usageandexit(); - } - - /* Loop over all command line options in order to look for options. diff --git a/examples/upscale_cond.cpp b/examples/upscale_cond.cpp index b7461a3..476ad12 100644 --- a/examples/upscale_cond.cpp +++ b/examples/upscale_cond.cpp @@ -214,12 +214,6 @@ try if found, replace default values with command line values. */ - /* Check first if there is anything on the command line to look for */ - if (varnum == 1) { - if (isMaster) cout << "Error: No Eclipsefile or J-functions found on command line." << endl; - usageandexit(); - } - /* Loop over all command line options in order to look for options. diff --git a/examples/upscale_relperm.cpp b/examples/upscale_relperm.cpp index f125525..4069c97 100644 --- a/examples/upscale_relperm.cpp +++ b/examples/upscale_relperm.cpp @@ -470,13 +470,6 @@ try */ auto options = defineOptions(); - /* Check first if there is anything on the command line to look for */ - if (varnum == 1) { - if (mpi_rank == 0) - cout << "Error: No Eclipsefile or stonefiles found on command line." << endl; - usageandexit(); - } - /* 'argeclindex' is so that vararg[argeclindex] = the eclipse filename. */