30 template<
class Type,
class DType,
class LUType>
34 const word& fieldName,
39 word smootherName = smootherDict.
lookup(
"smoother");
43 typename symMatrixConstructorTable::iterator constructorIter =
44 symMatrixConstructorTablePtr_->find(smootherName);
46 if (constructorIter == symMatrixConstructorTablePtr_->end())
49 <<
"Unknown symmetric matrix smoother " << smootherName
51 <<
"Valid symmetric matrix smoothers are :" <<
endl 52 << symMatrixConstructorTablePtr_->toc()
67 typename asymMatrixConstructorTable::iterator constructorIter =
68 asymMatrixConstructorTablePtr_->find(smootherName);
70 if (constructorIter == asymMatrixConstructorTablePtr_->end())
73 <<
"Unknown asymmetric matrix smoother " << smootherName
75 <<
"Valid asymmetric matrix smoothers are :" <<
endl 76 << asymMatrixConstructorTablePtr_->toc()
92 <<
"cannot solve incomplete matrix, no off-diagonal coefficients" 105 template<
class Type,
class DType,
class LUType>
108 const word& fieldName,
112 fieldName_(fieldName),
smoother(const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix)
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< smoother > New(const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &smootherDict)
Return a new smoother.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
LduMatrix is a general matrix class in which the coefficients are stored as three arrays...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.