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

STYLE: avoid deprecated objectRegistry methods

parent 19a4e158
......@@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2018-2019 OpenCFD Ltd.
Copyright (C) 2018-2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -73,7 +73,7 @@ Foam::vtk::cloudAdaptor::getCloudImpl
auto output = vtkSmartPointer<vtkMultiPieceDataSet>::New();
const auto* objPtr = mesh.lookupObjectPtr<cloud>(cloudName);
const auto* objPtr = mesh.cfindObject<cloud>(cloudName);
if (!objPtr)
{
return output;
......@@ -94,7 +94,7 @@ Foam::vtk::cloudAdaptor::getCloudImpl
objPtr->writeObjects(obrTmp);
const auto* pointsPtr = obrTmp.lookupObjectPtr<vectorField>("position");
const auto* pointsPtr = obrTmp.cfindObject<vectorField>("position");
vtkSmartPointer<vtkPolyData> vtkmesh;
if (pointsPtr)
......
......@@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2017-2019 OpenCFD Ltd.
Copyright (C) 2017-2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -299,7 +299,7 @@ void Foam::vtk::fvMeshAdaptor::applyGhostingBoundary(const labelUList& types)
void Foam::vtk::fvMeshAdaptor::applyGhosting()
{
const auto* stencilPtr =
mesh_.lookupObjectPtr<cellCellStencilObject>
mesh_.cfindObject<cellCellStencilObject>
(
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