Go to the documentation of this file.
57 readFromLine(nSkip, is, value);
65 const label fieldIndex
70 const word& fieldName(fieldNames_[fieldIndex]);
71 const label fileIndex = timeStartIndex_ +
timeIndex*timeIncrement_;
73 fileName fieldFileName(replaceMask(fieldFileNames_[fieldIndex], fileIndex));
79 <<
"Cannot read file " << is.
name()
80 <<
" for field " << fieldName
86 is.
read(primitiveType);
95 <<
"' values but found type " << primitiveType <<
nl
96 <<
" This may be okay, but could also indicate an error"
110 label
n = surfPtr_->size();
120 <<
"Reading face type "
121 << schema_[i].first() <<
" data" <<
endl;
123 const label nFace = schema_[i].second();
132 cmptI < pTraits<Type>::nComponents;
136 for (label faceI = 0; faceI < nFace; ++faceI)
139 values[cmptI].append(value);
146 auto&
field = tfield.ref();
148 for (
direction cmpti=0; cmpti < pTraits<Type>::nComponents; ++cmpti)
A class for handling words, derived from Foam::string.
A class for handling file names.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
virtual const fileName & name() const
Read/write access to the name of the stream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
bool good() const noexcept
True if next operation might succeed.
Ensight output with specialized read() for strings, integers and floats. Correctly handles binary rea...
#define DebugInFunction
Report an information message using Foam::Info.
Input from string buffer, using a ISstream. Always UNCOMPRESSED.
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void readFromLine(const label nSkip, IStringStream &is, Type &value) const
Helper function to return Type after skipping n tokens.
#define DebugInfo
Report an information message using Foam::Info.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A traits class, which is primarily used for primitives.
tmp< Field< Type > > readField(const label timeIndex, const label fieldIndex) const
Helper function to return a field.
#define IOWarningInFunction(ios)
Report an IO warning using Foam::Warning.
virtual Istream & read(char *buf, std::streamsize count)
Binary read.