diff --git a/tests/test_vfpproperties.cpp b/tests/test_vfpproperties.cpp index 06fa8f9f8..104f45ce9 100644 --- a/tests/test_vfpproperties.cpp +++ b/tests/test_vfpproperties.cpp @@ -388,12 +388,13 @@ BOOST_AUTO_TEST_CASE(ExtrapolatePlaneADB) alq_axis, data); - //Temporary variables used to cast a single double to an ADB - ADB::V xx(1); - ADB::V yy(1); - ADB::V zz(1); - ADB::V uu(1); - ADB::V vv(1); + //Temporary variables used to represent independent wells + const int num_wells = 5; + ADB::V xx(num_wells); + ADB::V yy(num_wells); + ADB::V zz(num_wells); + ADB::V uu(num_wells); + ADB::V vv(num_wells); //Check linear extrapolation (i.e., using values of x, y, etc. outside our interpolant domain) double sum = 0.0; @@ -411,14 +412,13 @@ BOOST_AUTO_TEST_CASE(ExtrapolatePlaneADB) const double u = l / static_cast(n); for (int m=-5; m<=n+5; ++m) { const double v = m / static_cast(n); - double reference = x + 2*y + 3*z + 4*u + 5*v; - reference_sum += reference; - - xx[0] = x; - yy[0] = y; - zz[0] = z; - uu[0] = u; - vv[0] = v; + for (unsigned int w=0; w