In B source the argument to 'log' may be 0 upon start of simulation, allow recovery like in function 'ln'

This commit is contained in:
h_vogt 2012-06-05 23:49:29 +02:00
parent 0a087a47c8
commit ff11ccda20
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ PTln(double arg)
double
PTlog(double arg)
{
if (arg <= 0.0)
if (arg < 0.0)
return (HUGE);
return (log10(arg));
}