Fixed a compiler error caused by ambiguous call to sqrt

This commit is contained in:
Ray Speth 2012-12-17 23:59:40 +00:00
parent 95e66cd5ff
commit ee2697b4b8

View file

@ -1248,7 +1248,7 @@ namespace Cantera {
* Add junk to the Hessian diagonal
* -> Note, testing indicates that this will get too big for ill-conditioned systems.
*/
hcol = sqrt(neq_) * 1.0E-7 * hnorm;
hcol = sqrt(static_cast<double>(neq_)) * 1.0E-7 * hnorm;
#ifdef DEBUG_HKM_NOT
if (hcol > 1.0) {
hcol = 1.0E1;