scalar + volScalarField
I'm getting a Floating Point Exception on the following code fragment:
Foam::log(scalar(1) + (a_O*Kseg_O ))
a_O is a dimensionedScalar with value 0, Kseg_O is a volScalarField. The value in the brackets should never be zero thanks to scalar(1), yet still I get a floating point exception. Does the code not add scalar(1) to each element of the volScalarField?
|All times are GMT -4. The time now is 11:52.|