mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
CrankNicolsonDdtScheme: Corrected input of off-centering coefficient of 1
This commit is contained in:
committed by
Andrew Heather
parent
bdc48f6f54
commit
b39b90a9b5
@ -308,7 +308,7 @@ CrankNicolsonDdtScheme<Type>::CrankNicolsonDdtScheme
|
||||
|
||||
if (firstToken.isNumber())
|
||||
{
|
||||
const scalar ocCoeff = firstToken.scalarToken();
|
||||
const scalar ocCoeff = firstToken.number();
|
||||
if (ocCoeff < 0 || ocCoeff > 1)
|
||||
{
|
||||
FatalIOErrorInFunction
|
||||
|
||||
Reference in New Issue
Block a user