Go to the documentation of this file.
26 const int32 precision)
const
28 std::ostringstream buf;
30 buf.setf(ios_base::fmtflags(0), ios_base::floatfield);
42 buf.precision(precision);
56 startFrom =
"latestTime";
59 if(startFrom ==
"startTime")
70 if(startFrom ==
"firstTime")
74 else if( startFrom ==
"latestTime")
81 "expected firstTime, latestTime, or startTime in front of StartFrom, "<<
endl<<
82 "but found "<<startFrom<<
endl;
91 "Could not read endTime from file "<< cdPath_<<
endl;
98 "Could not read writeInterval from file "<< cdPath_<<
endl;
IOstream & fixed(IOstream &io)
virtual bool findTokenAndNextSilent(const word &w, word &nextW, int32 limitLine=100)
IOstream & scientific(IOstream &io)
T lookupDataOrSet(const word &keyword, const T &setVal)
lookup for keyword and data; set to setVal if lookup fails.
#define fatalExit
Fatal exit.
iOstream & endl(iOstream &os)
Add newline and flush stream.
bool findKeywordAndVal(const word &keyword, T &val, bool checkEndStatement=true)
find a pair of keyword and data terminated by ; keyword data; return false if keyword does not exist ...
Input file stream for reading binary or ascii data from a file.
Manages file pathes, manupulate and combines them.
#define fatalErrorInFunction
Report a fatal error and function name and exit the application.
readControlDict(const fileSystem &rootPath=defaultRootPath, const fileSystem &cdPath=defaultCDPath)
word convertTimeToName(const real t, const int32 precision) const