IOmapDistribute is derived from mapDistribute and IOobject to give the mapDistribute automatic IO functionality via the objectRegistry. More...


Public Member Functions | |
| TypeName ("mapDistribute") | |
| Runtime type information. More... | |
| IOmapDistribute (const IOobject &) | |
| Construct given an IOobject. More... | |
| IOmapDistribute (const IOobject &, const mapDistribute &) | |
| Construct given an IOobject and mapDistribute. More... | |
| IOmapDistribute (const IOobject &, const Xfer< mapDistribute > &) | |
| Construct by transferring the mapDistribute contents. More... | |
| virtual | ~IOmapDistribute () |
| Destructor. More... | |
| virtual bool | readData (Istream &) |
| ReadData function required for regIOobject read operation. More... | |
| virtual bool | writeData (Ostream &) const |
| WriteData function required for regIOobject write operation. More... | |
Public Member Functions inherited from regIOobject | |
| TypeName ("regIOobject") | |
| Runtime type information. More... | |
| regIOobject (const IOobject &, const bool isTime=false) | |
| Construct from IOobject. Optional flag for if IOobject is the. More... | |
| regIOobject (const regIOobject &) | |
| Construct as copy. More... | |
| regIOobject (const regIOobject &, bool registerCopy) | |
| Construct as copy, transferring registry registration to copy. More... | |
| regIOobject (const word &newName, const regIOobject &, bool registerCopy) | |
| Construct as copy with new name, transfering registry registration. More... | |
| regIOobject (const IOobject &, const regIOobject &) | |
| Construct as copy with new IO parameters. More... | |
| virtual | ~regIOobject () |
| Destructor. More... | |
| bool | checkIn () |
| Add object to registry. More... | |
| bool | checkOut () |
| Remove object from registry. More... | |
| virtual void | addWatch () |
| Add file watch on object (if registered and READ_IF_MODIFIED) More... | |
| bool | ownedByRegistry () const |
| Is this object owned by the registry? More... | |
| void | store () |
| Transfer ownership of this object to its registry. More... | |
| void | release () |
| Release ownership of this object from its registry. More... | |
| label | eventNo () const |
| Event number at last update. More... | |
| label & | eventNo () |
| Event number at last update. More... | |
| bool | upToDate (const regIOobject &) const |
| Return true if up-to-date with respect to given object. More... | |
| bool | upToDate (const regIOobject &, const regIOobject &) const |
| Return true if up-to-date with respect to given objects. More... | |
| bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &) const |
| Return true if up-to-date with respect to given objects. More... | |
| bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &, const regIOobject &) const |
| Return true if up-to-date with respect to given objects. More... | |
| void | setUpToDate () |
| Set up to date (obviously) More... | |
| virtual void | rename (const word &newName) |
| Rename. More... | |
| virtual fileName | filePath () const |
| Return complete path + object name if the file exists. More... | |
| bool | headerOk () |
| Read and check header info. More... | |
| Istream & | readStream (const word &, const bool valid=true) |
| Return Istream and check object type against that given. More... | |
| void | close () |
| Close Istream. More... | |
| virtual bool | read () |
| Read object. More... | |
| virtual label | addWatch (const fileName &) |
| Add file watch for fileName on object if not yet watched. Return. More... | |
| const labelList & | watchIndices () const |
| Return file-monitoring handles. More... | |
| labelList & | watchIndices () |
| Return file-monitoring handles. More... | |
| virtual bool | modified () const |
| Return true if the object's file (or files for objectRegistry) More... | |
| virtual bool | readIfModified () |
| Read object if modified (as set by call to modified) More... | |
| virtual bool | writeObject (IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType, const bool valid) const |
| Write using given format, version and compression. More... | |
| virtual bool | write (const bool valid=true) const |
| Write using setting from DB. More... | |
| virtual bool | global () const |
| Is object global. More... | |
| void | operator= (const IOobject &) |
Public Member Functions inherited from IOobject | |
| TypeName ("IOobject") | |
| Runtime type information. More... | |
| IOobject (const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true) | |
| Construct from name, instance, registry, io options. More... | |
| IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
| Construct from name, instance, local, registry, io options. More... | |
| IOobject (const fileName &path, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
| Construct from path, registry, io options. More... | |
| IOobject (const IOobject &io, const objectRegistry ®istry) | |
| Construct from copy resetting registry. More... | |
| IOobject (const IOobject &io, const word &name) | |
| Construct from copy resetting name. More... | |
| autoPtr< IOobject > | clone () const |
| Clone. More... | |
| autoPtr< IOobject > | clone (const objectRegistry ®istry) const |
| Clone resetting registry. More... | |
| virtual | ~IOobject () |
| Destructor. More... | |
| const Time & | time () const |
| Return time. More... | |
| const objectRegistry & | db () const |
| Return the local objectRegistry. More... | |
| const word & | name () const |
| Return name. More... | |
| const word & | headerClassName () const |
| Return name of the class name read from header. More... | |
| word & | headerClassName () |
| Return name of the class name read from header. More... | |
| string & | note () |
| Return non-constant access to the optional note. More... | |
| const string & | note () const |
| Return the optional note. More... | |
| bool & | registerObject () |
| Register object created from this IOobject with registry if true. More... | |
| bool | registerObject () const |
| Register object created from this IOobject with registry if true. More... | |
| bool & | globalObject () |
| Is object same for all processors. More... | |
| bool | globalObject () const |
| Is object same for all processors. More... | |
| readOption | readOpt () const |
| readOption & | readOpt () |
| writeOption | writeOpt () const |
| writeOption & | writeOpt () |
| word | group () const |
| Return group (extension part of name) More... | |
| word | member () const |
| Return member (name without the extension) More... | |
| const fileName & | rootPath () const |
| const fileName & | caseName () const |
| const fileName & | instance () const |
| fileName & | instance () |
| const fileName & | local () const |
| fileName | path () const |
| Return complete path. More... | |
| fileName | path (const word &instance, const fileName &local="") const |
| Return complete path with alternative instance and local. More... | |
| fileName | objectPath () const |
| Return complete path + object name. More... | |
| fileName | localFilePath (const word &typeName) const |
| Helper for filePath that searches locally. More... | |
| fileName | globalFilePath (const word &typeName) const |
| Helper for filePath that searches up if in parallel. More... | |
| bool | readHeader (Istream &) |
| Read header. More... | |
| template<class Type > | |
| bool | typeHeaderOk (const bool checkType=true) |
| Read header (uses typeFilePath to find file) and check header. More... | |
| template<class Type > | |
| void | warnNoRereading () const |
| Helper: warn that type does not support re-reading. More... | |
| bool | writeHeader (Ostream &) const |
| Write header. More... | |
| bool | writeHeader (Ostream &, const word &objectType) const |
| Write header. Allow override of type. More... | |
| bool | good () const |
| bool | bad () const |
| InfoProxy< IOobject > | info () const |
| Return info proxy. More... | |
| void | operator= (const IOobject &) |
| template<class Name > | |
| Foam::word | groupName (Name name, const word &group) |
Public Member Functions inherited from mapDistribute | |
| ClassName ("mapDistribute") | |
| mapDistribute () | |
| Construct null. More... | |
| mapDistribute (const label constructSize, const Xfer< labelListList > &subMap, const Xfer< labelListList > &constructMap, const bool subHasFlip=false, const bool constructHasFlip=false) | |
| Construct from components. More... | |
| mapDistribute (const label constructSize, const Xfer< labelListList > &subMap, const Xfer< labelListList > &constructMap, const Xfer< labelListList > &transformElements, const Xfer< labelList > &transformStart, const bool subHasFlip=false, const bool constructHasFlip=false) | |
| Construct from components. More... | |
| mapDistribute (const labelList &sendProcs, const labelList &recvProcs) | |
| Construct from reverse addressing: per data item the send. More... | |
| mapDistribute (const globalIndex &, labelList &elements, List< Map< label >> &compactMap, const int tag=Pstream::msgType()) | |
| Construct from list of (possibly) remote elements in globalIndex. More... | |
| mapDistribute (const globalIndex &, labelListList &cellCells, List< Map< label >> &compactMap, const int tag=Pstream::msgType()) | |
| Special variant that works with the info sorted into bins. More... | |
| mapDistribute (const globalIndex &, labelList &untransformedElements, const globalIndexAndTransform &, const labelPairList &transformedElements, labelList &transformedIndices, List< Map< label >> &compactMap, const int tag=Pstream::msgType()) | |
| Construct from list of (possibly remote) untransformed elements. More... | |
| mapDistribute (const globalIndex &, labelListList &cellCells, const globalIndexAndTransform &, const List< labelPairList > &transformedElements, labelListList &transformedIndices, List< Map< label >> &compactMap, const int tag=Pstream::msgType()) | |
| As above but with ListLists. More... | |
| mapDistribute (const Xfer< mapDistribute > &) | |
| Construct by transferring parameter content. More... | |
| mapDistribute (const mapDistribute &) | |
| Construct copy. More... | |
| mapDistribute (Istream &) | |
| Construct from Istream. More... | |
| autoPtr< mapDistribute > | clone () const |
| Clone. More... | |
| virtual | ~mapDistribute () |
| Destructor. More... | |
| const labelListList & | transformElements () const |
| For every globalIndexAndTransform::transformPermutations. More... | |
| const labelList & | transformStart () const |
| Destination in constructMap for transformed elements. More... | |
| label | whichTransform (const label index) const |
| Find transform from transformElements. More... | |
| void | transfer (mapDistribute &) |
| Transfer the contents of the argument and annul the argument. More... | |
| Xfer< mapDistribute > | xfer () |
| Transfer contents to the Xfer container. More... | |
| template<class T > | |
| void | distribute (List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const |
| Distribute data using default commsType. More... | |
| template<class T , class negateOp > | |
| void | distribute (List< T > &fld, const negateOp &negOp, const bool dummyTransform=true, const int tag=UPstream::msgType()) const |
| Distribute data using default commsType. More... | |
| template<class T > | |
| void | distribute (DynamicList< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const |
| Distribute data using default commsType. More... | |
| template<class T > | |
| void | reverseDistribute (const label constructSize, List< T > &, const bool dummyTransform=true, const int tag=UPstream::msgType()) const |
| Reverse distribute data using default commsType. More... | |
| template<class T > | |
| void | reverseDistribute (const label constructSize, const T &nullValue, List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const |
| Reverse distribute data using default commsType. More... | |
| template<class T , class TransformOp > | |
| void | distribute (const globalIndexAndTransform &, List< T > &fld, const TransformOp &top, const int tag=UPstream::msgType()) const |
| Distribute with transforms. More... | |
| template<class T , class TransformOp > | |
| void | reverseDistribute (const globalIndexAndTransform &, const label constructSize, List< T > &fld, const TransformOp &top, const int tag=UPstream::msgType()) const |
| Reverse distribute with transforms. More... | |
| template<class T , class TransformOp > | |
| void | reverseDistribute (const globalIndexAndTransform &, const label constructSize, const T &nullValue, List< T > &fld, const TransformOp &top, const int tag=UPstream::msgType()) const |
| Reverse distribute with transforms. More... | |
| void | printLayout (Ostream &os) const |
| Debug: print layout. Can only be used on maps with sorted. More... | |
| void | updateMesh (const mapPolyMesh &) |
| Correct for topo change. More... | |
| void | operator= (const mapDistribute &) |
Public Member Functions inherited from mapDistributeBase | |
| ClassName ("mapDistributeBase") | |
| mapDistributeBase () | |
| Construct null. More... | |
| mapDistributeBase (const label constructSize, const Xfer< labelListList > &subMap, const Xfer< labelListList > &constructMap, const bool subHasFlip=false, const bool constructHasFlip=false) | |
| Construct from components. More... | |
| mapDistributeBase (const labelList &sendProcs, const labelList &recvProcs) | |
| Construct from reverse addressing: per data item the send. More... | |
| mapDistributeBase (const globalIndex &, labelList &elements, List< Map< label >> &compactMap, const int tag=Pstream::msgType()) | |
| Construct from list of (possibly) remote elements in globalIndex. More... | |
| mapDistributeBase (const globalIndex &, labelListList &cellCells, List< Map< label >> &compactMap, const int tag=Pstream::msgType()) | |
| Special variant that works with the info sorted into bins. More... | |
| mapDistributeBase (const Xfer< mapDistributeBase > &) | |
| Construct by transferring parameter content. More... | |
| mapDistributeBase (const mapDistributeBase &) | |
| Construct copy. More... | |
| mapDistributeBase (Istream &) | |
| Construct from Istream. More... | |
| label | constructSize () const |
| Constructed data size. More... | |
| label & | constructSize () |
| Constructed data size. More... | |
| const labelListList & | subMap () const |
| From subsetted data back to original data. More... | |
| labelListList & | subMap () |
| From subsetted data back to original data. More... | |
| const labelListList & | constructMap () const |
| From subsetted data to new reconstructed data. More... | |
| labelListList & | constructMap () |
| From subsetted data to new reconstructed data. More... | |
| bool | subHasFlip () const |
| Does subMap include a sign. More... | |
| bool & | subHasFlip () |
| Does subMap include a sign. More... | |
| bool | constructHasFlip () const |
| Does constructMap include a sign. More... | |
| bool & | constructHasFlip () |
| Does constructMap include a sign. More... | |
| const List< labelPair > & | schedule () const |
| Return a schedule. Demand driven. See above. More... | |
| void | transfer (mapDistributeBase &) |
| Transfer the contents of the argument and annul the argument. More... | |
| Xfer< mapDistributeBase > | xfer () |
| Transfer contents to the Xfer container. More... | |
| void | compact (const boolList &elemIsUsed, const int tag=UPstream::msgType()) |
| Compact maps. Gets per field a bool whether it is used (locally) More... | |
| void | compact (const boolList &elemIsUsed, const label localSize, labelList &oldToNewSub, labelList &oldToNewConstruct, const int tag=UPstream::msgType()) |
| Compact all maps and layout. Returns compaction maps for. More... | |
| template<class T > | |
| void | distribute (List< T > &fld, const int tag=UPstream::msgType()) const |
| Distribute data using default commsType. More... | |
| template<class T , class negateOp > | |
| void | distribute (List< T > &fld, const negateOp &negOp, const int tag=UPstream::msgType()) const |
| Distribute data using default commsType. More... | |
| template<class T > | |
| void | distribute (DynamicList< T > &fld, const int tag=UPstream::msgType()) const |
| Distribute data using default commsType. More... | |
| template<class T > | |
| void | reverseDistribute (const label constructSize, List< T > &, const int tag=UPstream::msgType()) const |
| Reverse distribute data using default commsType. More... | |
| template<class T > | |
| void | reverseDistribute (const label constructSize, const T &nullValue, List< T > &fld, const int tag=UPstream::msgType()) const |
| Reverse distribute data using default commsType. More... | |
| template<class T > | |
| void | send (PstreamBuffers &, const List< T > &) const |
| Do all sends using PstreamBuffers. More... | |
| template<class T > | |
| void | receive (PstreamBuffers &, List< T > &) const |
| Do all receives using PstreamBuffers. More... | |
| void | printLayout (Ostream &os) const |
| Debug: print layout. Can only be used on maps with sorted. More... | |
| void | updateMesh (const mapPolyMesh &) |
| Correct for topo change. More... | |
| void | operator= (const mapDistributeBase &) |
Additional Inherited Members | |
Public Types inherited from IOobject | |
| enum | objectState { GOOD, BAD } |
| Enumeration defining the valid states of an IOobject. More... | |
| enum | readOption { MUST_READ, MUST_READ_IF_MODIFIED, READ_IF_PRESENT, NO_READ } |
| Enumeration defining the read options. More... | |
| enum | writeOption { AUTO_WRITE = 0, NO_WRITE = 1 } |
| Enumeration defining the write options. More... | |
| enum | fileCheckTypes { timeStamp, timeStampMaster, inotify, inotifyMaster } |
| Enumeration defining the file checking options. More... | |
Static Public Member Functions inherited from regIOobject | |
| template<class Type > | |
| static Type & | store (Type *) |
| Transfer ownership of the given object pointer to its registry. More... | |
| template<class Type > | |
| static Type & | store (autoPtr< Type > &) |
| Transfer ownership of the given object pointer to its registry. More... | |
Static Public Member Functions inherited from IOobject | |
| static bool | fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name) |
| Split path into instance, local, name components. More... | |
| template<class Name > | |
| static word | groupName (Name name, const word &group) |
| template<class Stream > | |
| static Stream & | writeBanner (Stream &os, bool noHint=false) |
| Write the standard OpenFOAM file/dictionary banner. More... | |
| template<class Stream > | |
| static Stream & | writeDivider (Stream &os) |
| Write the standard file section divider. More... | |
| template<class Stream > | |
| static Stream & | writeEndDivider (Stream &os) |
| Write the standard end file divider. More... | |
Static Public Member Functions inherited from mapDistributeBase | |
| static List< labelPair > | schedule (const labelListList &subMap, const labelListList &constructMap, const int tag) |
| Calculate a schedule. See above. More... | |
| static label | renumber (const globalIndex &, const List< Map< label >> &compactMap, const label globalElement) |
| Helper for construct from globalIndex. Renumbers element. More... | |
| template<class T , class negateOp > | |
| static void | distribute (const Pstream::commsTypes commsType, const List< labelPair > &schedule, const label constructSize, const labelListList &subMap, const bool subHasFlip, const labelListList &constructMap, const bool constructHasFlip, List< T > &, const negateOp &negOp, const int tag=UPstream::msgType()) |
| Distribute data. Note:schedule only used for. More... | |
| template<class T , class CombineOp , class negateOp > | |
| static void | distribute (const Pstream::commsTypes commsType, const List< labelPair > &schedule, const label constructSize, const labelListList &subMap, const bool subHasFlip, const labelListList &constructMap, const bool constructHasFlip, List< T > &, const CombineOp &cop, const negateOp &negOp, const T &nullValue, const int tag=UPstream::msgType()) |
| Distribute data. If multiple processors writing to same. More... | |
Static Public Attributes inherited from regIOobject | |
| static float | fileModificationSkew |
Static Public Attributes inherited from IOobject | |
| static const NamedEnum< fileCheckTypes, 4 > | fileCheckTypesNames |
| static fileCheckTypes | fileModificationChecking |
| Type of file modification checking. More... | |
Protected Member Functions inherited from regIOobject | |
| bool | readHeaderOk (const IOstream::streamFormat PstreamFormat, const word &typeName) |
| Helper: check readOpt flags and read if necessary. More... | |
Protected Member Functions inherited from IOobject | |
| void | setBad (const string &) |
| Set the object state to bad. More... | |
Protected Member Functions inherited from mapDistributeBase | |
| void | calcCompactAddressing (const globalIndex &globalNumbering, const labelList &elements, List< Map< label >> &compactMap) const |
| Construct per processor compact addressing of the global elements. More... | |
| void | calcCompactAddressing (const globalIndex &globalNumbering, const labelListList &elements, List< Map< label >> &compactMap) const |
| void | exchangeAddressing (const int tag, const globalIndex &globalNumbering, labelList &elements, List< Map< label >> &compactMap, labelList &compactStart) |
| void | exchangeAddressing (const int tag, const globalIndex &globalNumbering, labelListList &elements, List< Map< label >> &compactMap, labelList &compactStart) |
Static Protected Member Functions inherited from mapDistributeBase | |
| static void | checkReceivedSize (const label proci, const label expectedSize, const label receivedSize) |
| template<class T , class CombineOp , class negateOp > | |
| static void | flipAndCombine (const UList< label > &map, const bool hasFlip, const UList< T > &rhs, const CombineOp &cop, const negateOp &negOp, List< T > &lhs) |
| template<class T , class negateOp > | |
| static T | accessAndFlip (const UList< T > &fld, const label index, const bool hasFlip, const negateOp &negOp) |
Protected Attributes inherited from mapDistributeBase | |
| label | constructSize_ |
| Size of reconstructed data. More... | |
| labelListList | subMap_ |
| Maps from subsetted data back to original data. More... | |
| labelListList | constructMap_ |
| Maps from subsetted data to new reconstructed data. More... | |
| bool | subHasFlip_ |
| Whether subMap includes flip or not. More... | |
| bool | constructHasFlip_ |
| Whether constructMap includes flip or not. More... | |
| autoPtr< List< labelPair > > | schedulePtr_ |
| Schedule. More... | |
Static Protected Attributes inherited from regIOobject | |
| static bool | masterOnlyReading = false |
| To flag master-only reading of objects. More... | |
IOmapDistribute is derived from mapDistribute and IOobject to give the mapDistribute automatic IO functionality via the objectRegistry.
Definition at line 51 of file IOmapDistribute.H.
| IOmapDistribute | ( | const IOobject & | io | ) |
Construct given an IOobject.
Definition at line 38 of file IOmapDistribute.C.
References regIOobject::close(), Foam::endl(), regIOobject::headerOk(), IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED, IOobject::name(), IOobject::READ_IF_PRESENT, IOobject::readOpt(), regIOobject::readStream(), and WarningInFunction.
Referenced by IOmapDistribute::IOmapDistribute().


| IOmapDistribute | ( | const IOobject & | io, |
| const mapDistribute & | map | ||
| ) |
Construct given an IOobject and mapDistribute.
Definition at line 68 of file IOmapDistribute.C.
References regIOobject::close(), Foam::endl(), regIOobject::headerOk(), IOmapDistribute::IOmapDistribute(), IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED, IOobject::name(), mapDistribute::operator=(), IOobject::READ_IF_PRESENT, IOobject::readOpt(), regIOobject::readStream(), and WarningInFunction.

| IOmapDistribute | ( | const IOobject & | io, |
| const Xfer< mapDistribute > & | map | ||
| ) |
Construct by transferring the mapDistribute contents.
Definition at line 105 of file IOmapDistribute.C.
References regIOobject::close(), Foam::endl(), regIOobject::headerOk(), IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED, IOobject::name(), IOobject::READ_IF_PRESENT, IOobject::readOpt(), regIOobject::readStream(), mapDistribute::transfer(), and WarningInFunction.

|
virtual |
Destructor.
Definition at line 141 of file IOmapDistribute.C.
| TypeName | ( | "mapDistribute" | ) |
Runtime type information.
|
virtual |
ReadData function required for regIOobject read operation.
Reimplemented from regIOobject.
Definition at line 147 of file IOmapDistribute.C.
|
virtual |
WriteData function required for regIOobject write operation.
Implements regIOobject.
Definition at line 153 of file IOmapDistribute.C.
1.8.13