40 const label fineLevelIndex,
41 const label coarseComm
44 const word coupleType(fineInterface.type());
46 lduInterfaceConstructorTable::iterator cstrIter =
47 lduInterfaceConstructorTablePtr_->find(coupleType);
49 if (cstrIter == lduInterfaceConstructorTablePtr_->end())
52 <<
"Unknown GAMGInterface type " << coupleType <<
".\n"
53 <<
"Valid GAMGInterface types are :"
54 << lduInterfaceConstructorTablePtr_->sortedToc()
65 localRestrictAddressing,
66 neighbourRestrictAddressing,
76 const word& coupleType,
82 IstreamConstructorTable::iterator cstrIter =
83 IstreamConstructorTablePtr_->find(coupleType);
85 if (cstrIter == IstreamConstructorTablePtr_->end())
88 <<
"Unknown GAMGInterface type " << coupleType <<
".\n"
89 <<
"Valid GAMGInterface types are :"
90 << IstreamConstructorTablePtr_->sortedToc()
virtual label index() const
static autoPtr< GAMGInterface > New(const label index, const lduInterfacePtrsList &coarseInterfaces, const lduInterface &fineInterface, const labelField &localRestrictAddressing, const labelField &neighbourRestrictAddressing, const label fineLevelIndex, const label coarseComm)
Return a pointer to a new interface created on freestore given.
virtual const lduInterfacePtrsList & coarseInterfaces() const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
An abstract base class for implicitly-coupled interfaces e.g. processor and cyclic patches.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.