Fixed several compiler warnings

This commit is contained in:
babrodtk
2015-08-19 13:12:14 +02:00
parent a002781998
commit 9458fcc498
6 changed files with 49 additions and 30 deletions
+10 -4
View File
@@ -35,6 +35,12 @@
#include <vector>
#include <memory>
namespace
{
static double invalid_alq = -1e100;
static double invalid_vfp = -2147483647;
} //Namespace
BOOST_AUTO_TEST_CASE(Construction)
{
const int nphases = 2;
@@ -98,11 +104,11 @@ BOOST_AUTO_TEST_CASE(Controls)
if (ok) {
const double distr[] = { 1.0, 0.0 };
const bool ok1 = append_well_controls(BHP, 1,
-1e100, -1e100,
invalid_alq, invalid_vfp,
&distr[0],
0, W.get());
const bool ok2 = append_well_controls(SURFACE_RATE, 1,
-1e100, -1e100,
invalid_alq, invalid_vfp,
&distr[0],
0, W.get());
@@ -155,11 +161,11 @@ BOOST_AUTO_TEST_CASE(Copy)
for (int w = 0; ok && (w < W1->number_of_wells); ++w) {
const double distr[] = { 1.0, 0.0 };
const bool okc1 = append_well_controls(BHP, 1,
-1e100, -1e100,
invalid_alq, invalid_vfp,
&distr[0], w,
W1.get());
const bool okc2 = append_well_controls(SURFACE_RATE, 1,
-1e100, -1e100,
invalid_alq, invalid_vfp,
&distr[0], w,
W1.get());