mutationpp / Mutationpp

The MUlticomponent Thermodynamic And Transport library for IONized gases in C++
GNU Lesser General Public License v3.0
108 stars 58 forks source link

Type definition bug line 285 of Transport.cpp #115

Closed jcschulz closed 4 years ago

jcschulz commented 4 years ago

The variable ei should be a vector of integers, not doubles. See the following snippet:

// Find the elements
Eigen::VectorXi ei(ne);   // Not Eigen::VectorXd ei(ne); 
for (int i = 0; i < ne; ++i)
    ei(i) = m_thermo.speciesIndex(m_thermo.elementName(i));

This fixes the compile-time error when using the Intel 2018 compiler.

jbscoggi commented 4 years ago

Hi @jcschulz. Thanks for catching that. Do you mind just submitting a PR with the update?