From 2e578426e941e7e9591cb415bb14c2dc2eddd2b1 Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Thu, 7 Mar 2013 10:28:54 +0100 Subject: [PATCH] Remove unused variable from example The value set to this variable is never used, not even in comments describing what one could do with it. Thus, it has no value as an example. I want remove it to avoid the unnecessary warning when compiling the project (currently the only one). --- examples/upscale_cap.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/upscale_cap.cpp b/examples/upscale_cap.cpp index 2df5728..7be7d79 100644 --- a/examples/upscale_cap.cpp +++ b/examples/upscale_cap.cpp @@ -235,7 +235,6 @@ int main(int varnum, char** vararg) const double maxPermContrast = atof(options["maxPermContrast"].c_str()); const double minPerm = atof(options["minPerm"].c_str()); const double minPoro = atof(options["minPoro"].c_str()); - bool zerosatnumcells = false; // This is set true if there are some cells with rocktype zero. /* Sanity check/fix on input for each cell: - Check that SATNUM are set sensibly, that is => 0 and < 1000, error if not. @@ -269,7 +268,6 @@ int main(int varnum, char** vararg) } // Explicitly handle "no rock" cells, set them to minimum perm and zero porosity. if (satnums[i] == 0) { - zerosatnumcells = true; permxs[i] = minPerm; poros[i] = 0; // zero poro is fine for these cells, as they are not // used in pcmin/max computation.