From d1535560e3e964681f4c10c063251bd0745b4238 Mon Sep 17 00:00:00 2001 From: Ian Bell <ian.bell@nist.gov> Date: Tue, 12 Oct 2021 20:57:22 -0400 Subject: [PATCH] Fix sizes of mole fraction array --- src/bench.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bench.cpp b/src/bench.cpp index d9a3b54..04c372d 100644 --- a/src/bench.cpp +++ b/src/bench.cpp @@ -101,7 +101,7 @@ TEST_CASE("Canonical cubic EOS derivatives", "[cubic]") auto model = canonical_PR(Tc_K, pc_Pa, acentric); double T = 300, rho = 2; - std::valarray<double> z(2, 1.0); + std::valarray<double> z = { 0.5, 0.3, 0.2 }; using tdx = TDXDerivatives<decltype(model), double, decltype(z)>; BENCHMARK("alphar") { -- GitLab