mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: fvMesh: add hasDb() member
This commit is contained in:
@ -1000,6 +1000,12 @@ Foam::label& Foam::faMesh::comm()
|
||||
}
|
||||
|
||||
|
||||
bool Foam::faMesh::hasDb() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
const Foam::objectRegistry& Foam::faMesh::thisDb() const
|
||||
{
|
||||
return mesh().thisDb();
|
||||
|
||||
@ -405,6 +405,9 @@ public:
|
||||
|
||||
// Access
|
||||
|
||||
//- Return true if thisDb() is a valid DB
|
||||
virtual bool hasDb() const;
|
||||
|
||||
//- Return reference to the mesh database
|
||||
virtual const objectRegistry& thisDb() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user