Skip to content
Snippets Groups Projects
Commit 6d7fead8 authored by Ian Bell's avatar Ian Bell
Browse files

Two non-serious warnings from clang squelched

parent d87e91ea
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
namespace teqp { namespace teqp {
static AllowedModels build_model(const nlohmann::json& json) { inline AllowedModels build_model(const nlohmann::json& json) {
// Extract the name of the model and the model parameters // Extract the name of the model and the model parameters
std::string kind = json.at("kind"); std::string kind = json.at("kind");
......
...@@ -6,20 +6,21 @@ ...@@ -6,20 +6,21 @@
namespace teqp{ namespace teqp{
struct VLEAncillary{ struct VLEAncillary{
const double T_r, Tmax, Tmin, reducing_value; const double T_r, Tmax, Tmin;
const std::string type, description; const std::string type, description;
const std::valarray<double> n, t; const std::valarray<double> n, t;
const double reducing_value;
const bool using_tau_r, noexp; const bool using_tau_r, noexp;
VLEAncillary(const nlohmann::json &j) : VLEAncillary(const nlohmann::json &j) :
T_r(j.at("T_r")), T_r(j.at("T_r")),
Tmax(j.at("Tmax")), Tmax(j.at("Tmax")),
Tmin(j.at("Tmin")), Tmin(j.at("Tmin")),
type(j.at("type")),
description(j.at("description")), description(j.at("description")),
n(j.at("n").get<std::valarray<double>>()), n(j.at("n").get<std::valarray<double>>()),
t(j.at("t").get<std::valarray<double>>()), t(j.at("t").get<std::valarray<double>>()),
reducing_value(j.at("reducing_value")), reducing_value(j.at("reducing_value")),
type(j.at("type")),
using_tau_r(j.at("using_tau_r")), using_tau_r(j.at("using_tau_r")),
noexp(type == "rhoLnoexp"){}; noexp(type == "rhoLnoexp"){};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment