From 55ece82319ea94d436c5baf22663fe143702cb8f Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 19 Sep 2013 14:49:09 +0000 Subject: [PATCH] [clib] Fix bounds check on getMolecularWeights The incorrect bounds check here caused problems with phases where there were more elements than species. Fixes Issue 173. --- src/clib/ct.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clib/ct.cpp b/src/clib/ct.cpp index 178223fea..f26391c2a 100644 --- a/src/clib/ct.cpp +++ b/src/clib/ct.cpp @@ -280,7 +280,7 @@ extern "C" { { try { ThermoPhase& p = ThermoCabinet::item(n); - p.checkElementArraySize(lenm); + p.checkSpeciesArraySize(lenm); const vector_fp& wt = p.molecularWeights(); copy(wt.begin(), wt.end(), mw); return 0;