mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add check for isTimeDb() into objectRegistry
- add missing time() into pointMesh STYLE: use static_cast instead of dynamic_cast for Time -> objectRegistry
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2016-2018 OpenCFD Ltd.
|
||||
Copyright (C) 2016-2021 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -146,6 +146,9 @@ int main(int argc, char *argv[])
|
||||
const objectRegistry& db = (optMesh ? mesh.thisDb() : runTime);
|
||||
|
||||
Info<<"## start ##" << nl;
|
||||
Info<< "db isTime:" << db.isTimeDb() << " addr:" << Foam::name(&db)
|
||||
<< " time: " << Foam::name(&(db.time())) << nl;
|
||||
|
||||
printRegistry(Info, db);
|
||||
Info<< nl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user