mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add objectRegistry handling to expressions driver
- needed for future embedding
This commit is contained in:
@ -28,9 +28,8 @@ License
|
||||
#include "patchExprDriver.H"
|
||||
#include "patchExprScanner.H"
|
||||
#include "error.H"
|
||||
#include "fvPatch.H"
|
||||
#include "fvMesh.H"
|
||||
#include "className.H"
|
||||
#include "fvPatch.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
@ -70,14 +69,6 @@ addNamedToRunTimeSelectionTable
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
static inline const TimeState* lookupTimeState
|
||||
(
|
||||
const fvPatch& p
|
||||
)
|
||||
{
|
||||
return &static_cast<const TimeState&>(p.boundaryMesh().mesh().time());
|
||||
}
|
||||
|
||||
static inline const fvPatch& lookupFvPatch
|
||||
(
|
||||
const fvMesh& mesh,
|
||||
@ -115,9 +106,12 @@ Foam::expressions::patchExpr::parseDriver::parseDriver
|
||||
)
|
||||
:
|
||||
parsing::genericRagelLemonDriver(),
|
||||
expressions::fvExprDriver(dict, lookupTimeState(p)),
|
||||
expressions::fvExprDriver(dict),
|
||||
patch_(p)
|
||||
{}
|
||||
{
|
||||
resetTimeReference(nullptr);
|
||||
resetDb(patch_.boundaryMesh().mesh().thisDb());
|
||||
}
|
||||
|
||||
|
||||
Foam::expressions::patchExpr::parseDriver::parseDriver
|
||||
@ -129,7 +123,10 @@ Foam::expressions::patchExpr::parseDriver::parseDriver
|
||||
parsing::genericRagelLemonDriver(),
|
||||
expressions::fvExprDriver(rhs),
|
||||
patch_(p)
|
||||
{}
|
||||
{
|
||||
resetTimeReference(nullptr);
|
||||
resetDb(patch_.boundaryMesh().mesh().thisDb());
|
||||
}
|
||||
|
||||
|
||||
Foam::expressions::patchExpr::parseDriver::parseDriver
|
||||
|
||||
Reference in New Issue
Block a user