32 libs.
open(
"lib" + solverName +
".so");
38 const word& solverName,
42 Info<<
"Selecting solver " << solverName <<
endl;
46 if (!fvMeshConstructorTablePtr_)
49 <<
"solvers table is empty"
53 fvMeshConstructorTable::iterator cstrIter =
54 fvMeshConstructorTablePtr_->find(solverName);
56 if (cstrIter == fvMeshConstructorTablePtr_->end())
59 <<
"Unknown solver type "
60 << solverName <<
nl <<
nl
61 <<
"Valid solvers are :" <<
endl
62 << fvMeshConstructorTablePtr_->sortedToc()
70 solverPtr->fvModels();
71 solverPtr->fvConstraints();
bool open(const fileName &libName, const bool verbose=true)
Open the named library, optionally with warnings if problems occur.
Mesh data needed to do the Finite Volume discretisation.
static autoPtr< solver > New(const word &solverName, fvMesh &mesh)
Select, construct and return the solver.
static void load(const word &solverName)
Load the specified solver library.
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)
dlLibraryTable libs
Table of loaded dynamic libraries.
Ostream & endl(Ostream &os)
Add newline and flush stream.