Parser does not read nans
NANs are printed as "-nan" is ASCII format, and the parser cannot read them back.
The specific error message is:
--> FOAM FATAL IO ERROR:
wrong token type - expected Scalar, found on line 24216: punctuation '-'
file: <...> at line 24216.
From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::doubleScalar&)
in file lnInclude/Scalar.C at line 160.
The content of the mentioned line is
-nan