41bool Foam::surfZoneIOList::readIOcontents()
53 PtrList<entry> entries(is);
54 zones.resize(entries.size());
57 label startOffset = 0;
60 zones[zonei] = surfZone
62 entries[zonei].keyword(),
63 entries[zonei].
dict(),
67 if (zones[zonei].start() != startOffset)
70 <<
"surfZones are not ordered. Start of zone " << zonei
71 <<
" does not correspond to sum of preceding zones." <<
nl
76 startOffset += zones[zonei].size();
130 const label len = zones.
size();
bool isReadRequired() const noexcept
True if (MUST_READ | READ_MODIFIED) bits are set.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
fileName objectRelPath() const
The object path relative to the case.
void operator=(const UList< surfZone > &list)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void size(const label n)
Older name for setAddressableSize.
void close()
Close Istream.
regIOobject(const IOobject &io, const bool isTimeObject=false)
Construct from IOobject. The optional flag adds special handling if the object is the top-level regIO...
IOobject for a surfZoneList.
surfZoneIOList(const IOobject &io)
Construct from IOobject.
void operator=(const surfZoneIOList &rhs)
Copy assignment of entries.
bool writeData(Ostream &os) const
The writeData function - required by regIOobject.
A surface zone on a MeshedSurface.
@ BEGIN_LIST
Begin list [isseparator].
@ END_LIST
End list [isseparator].
#define defineTypeName(Type)
Define the typeName.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
List< surfZone > surfZoneList
List of surfZone.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
Ostream & incrIndent(Ostream &os)
Increment the indent level.
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
Ostream & endl(Ostream &os)
Add newline and flush stream.
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.