From 99d1df08499f2c9a1078bb4f783809ae83dfc314 Mon Sep 17 00:00:00 2001 From: Ian Bell <ian.bell@nist.gov> Date: Thu, 14 Oct 2021 16:03:39 -0400 Subject: [PATCH] Fix PR timing for Ncomp > 1 --- src/time_Ar0n.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/time_Ar0n.cpp b/src/time_Ar0n.cpp index df8b6b7..1a8d293 100644 --- a/src/time_Ar0n.cpp +++ b/src/time_Ar0n.cpp @@ -251,7 +251,7 @@ int main() }; auto SAFT = build_PCSAFT(Ncomp); - std::valarray<double> Tc_K = { 369.89 }, pc_Pa = { 4251200.0 }, acentric = { 0.1521 }; + std::valarray<double> Tc_K(369.89, Ncomp), pc_Pa(4251200.0, Ncomp), acentric(0.1521, Ncomp); auto PR = canonical_PR(Tc_K, pc_Pa, acentric); outputs.push_back(one_deriv<0, 0>(thing, Ncomp, taus, deltas, vdW, "vdW", Ts, rhos)); append_Ncomp(); -- GitLab