49 #if defined(WM_SP) || defined(WM_SPDP) 64 #ifdef COMPAT_OPENFOAM_ORG 80 inline scalar readScalar(
const char* buf)
82 return readFloat(buf);
86 inline bool readScalar(
const char* buf, scalar& val)
88 return readFloat(buf, val);
92 inline scalar readScalar(
const std::string& str)
94 return readFloat(str);
98 inline bool readScalar(
const std::string& str, scalar& val)
100 return readFloat(str, val);
104 scalar readScalar(Istream& is);
107 scalar readScalarOrDefault(Istream& is,
const scalar defaultValue);
112 scalar readRawScalar(Istream& is);
117 void readRawScalar(Istream& is, scalar* data,
size_t nElem = 1);
135 #ifdef COMPAT_OPENFOAM_ORG 151 inline scalar readScalar(
const char* buf)
153 return readDouble(buf);
157 inline bool readScalar(
const char* buf, scalar& val)
159 return readDouble(buf, val);
163 inline scalar readScalar(
const std::string& str)
165 return readDouble(str);
169 inline bool readScalar(
const std::string& str, scalar& val)
171 return readDouble(str, val);
176 scalar readScalar(Istream& is);
179 scalar readScalarOrDefault(Istream& is,
const scalar defaultValue);
184 scalar readRawScalar(Istream& is);
189 void readRawScalar(Istream& is, scalar* data,
size_t nElem = 1);
214 : static_cast<float>(val)
227 class typeOfSolve<scalar>
231 typedef solveScalar
type;
constexpr floatScalar floatScalarROOTSMALL
float narrowFloat(const double val)
Type narrowing from double to float.
constexpr floatScalar floatScalarROOTVGREAT
constexpr doubleScalar doubleScalarVSMALL
constexpr floatScalar floatScalarROOTVSMALL
constexpr floatScalar floatScalarSMALL
constexpr floatScalar floatScalarROOTGREAT
constexpr floatScalar floatScalarVSMALL
constexpr doubleScalar doubleScalarROOTVSMALL
constexpr doubleScalar doubleScalarROOTVGREAT
constexpr doubleScalar doubleScalarGREAT
constexpr doubleScalar doubleScalarVGREAT
constexpr doubleScalar doubleScalarSMALL
constexpr doubleScalar doubleScalarROOTSMALL
constexpr floatScalar floatScalarGREAT
constexpr floatScalar floatScalarVGREAT
constexpr doubleScalar doubleScalarROOTGREAT