Commit 556d0a76 authored by Mark Olesen's avatar Mark Olesen

STYLE: avoid deprecated objectRegistry methods

parent 19a4e158
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com \\ / A nd | www.openfoam.com
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2018-2019 OpenCFD Ltd. Copyright (C) 2018-2020 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -73,7 +73,7 @@ Foam::vtk::cloudAdaptor::getCloudImpl ...@@ -73,7 +73,7 @@ Foam::vtk::cloudAdaptor::getCloudImpl
auto output = vtkSmartPointer<vtkMultiPieceDataSet>::New(); auto output = vtkSmartPointer<vtkMultiPieceDataSet>::New();
const auto* objPtr = mesh.lookupObjectPtr<cloud>(cloudName); const auto* objPtr = mesh.cfindObject<cloud>(cloudName);
if (!objPtr) if (!objPtr)
{ {
return output; return output;
...@@ -94,7 +94,7 @@ Foam::vtk::cloudAdaptor::getCloudImpl ...@@ -94,7 +94,7 @@ Foam::vtk::cloudAdaptor::getCloudImpl
objPtr->writeObjects(obrTmp); objPtr->writeObjects(obrTmp);
const auto* pointsPtr = obrTmp.lookupObjectPtr<vectorField>("position"); const auto* pointsPtr = obrTmp.cfindObject<vectorField>("position");
vtkSmartPointer<vtkPolyData> vtkmesh; vtkSmartPointer<vtkPolyData> vtkmesh;
if (pointsPtr) if (pointsPtr)
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com \\ / A nd | www.openfoam.com
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2017-2019 OpenCFD Ltd. Copyright (C) 2017-2020 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -299,7 +299,7 @@ void Foam::vtk::fvMeshAdaptor::applyGhostingBoundary(const labelUList& types) ...@@ -299,7 +299,7 @@ void Foam::vtk::fvMeshAdaptor::applyGhostingBoundary(const labelUList& types)
void Foam::vtk::fvMeshAdaptor::applyGhosting() void Foam::vtk::fvMeshAdaptor::applyGhosting()
{ {
const auto* stencilPtr = const auto* stencilPtr =
mesh_.lookupObjectPtr<cellCellStencilObject> mesh_.cfindObject<cellCellStencilObject>
( (
cellCellStencilObject::typeName cellCellStencilObject::typeName
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment