From 5bb399b22dca9220637bb0afa8030b45c6fb55ae Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Fri, 22 Aug 2014 09:13:16 +0200 Subject: [PATCH] Fixed bug with REFPROP fluid loading (REFPROP bug?) --- src/Backends/REFPROP/REFPROPMixtureBackend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Backends/REFPROP/REFPROPMixtureBackend.cpp b/src/Backends/REFPROP/REFPROPMixtureBackend.cpp index e791c0d0..1746f69c 100644 --- a/src/Backends/REFPROP/REFPROPMixtureBackend.cpp +++ b/src/Backends/REFPROP/REFPROPMixtureBackend.cpp @@ -510,7 +510,7 @@ void REFPROPMixtureBackend::set_REFPROP_fluids(const std::vector &f throw NotImplementedError("You cannot use the REFPROPMixtureBackend."); } - // Loop over the file names - first we try with .fld, then .ppf - means you can't mix and match + // Loop over the file names - first we try with nothing, then .fld, then .ppf - means you can't mix and match for (unsigned int k = 0; k < 3; k++) { @@ -556,7 +556,7 @@ void REFPROPMixtureBackend::set_REFPROP_fluids(const std::vector &f } else if (ierr > 0) // Error { - if (k < 2 && N == 1) + if (k < 2) continue; // Allow us to use PPF if a pure fluid else throw ValueError(format("%s", herr));