From 343a4af3dfb222275b99e38d007f9f0bfd79d38e Mon Sep 17 00:00:00 2001 From: Ian Bell <ian.bell@nist.gov> Date: Thu, 28 Oct 2021 15:38:48 -0400 Subject: [PATCH] The errors need to be thrown... --- include/teqp/algorithms/VLE.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/teqp/algorithms/VLE.hpp b/include/teqp/algorithms/VLE.hpp index 25f9f69..d7b87e1 100644 --- a/include/teqp/algorithms/VLE.hpp +++ b/include/teqp/algorithms/VLE.hpp @@ -231,10 +231,10 @@ auto trace_VLE_isotherm_binary(const Model &model, Scalar T, VecType rhovecL0, V TVLEOptions opt = options.value_or(TVLEOptions{}); auto N = rhovecL0.size(); if (N != 2) { - std::invalid_argument("Size must be 2"); + throw std::invalid_argument("Size must be 2"); } if (rhovecL0.size() != rhovecV0.size()) { - std::invalid_argument("Both molar concentration arrays must be of the same size"); + throw std::invalid_argument("Both molar concentration arrays must be of the same size"); } auto norm = [](const auto& v) { return sqrt((v * v).sum()); }; -- GitLab