[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.
This commit is contained in:
parent
dab827d763
commit
55ece82319
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue