diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectSurface.C b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectSurface.C index e7c6c69176..2feb877193 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectSurface.C +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectSurface.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2015 OpenFOAM Foundation - \\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd. + \\/ M anipulation | Copyright (C) 2015-2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -124,7 +124,7 @@ void Foam::functionObjectSurface::addGeometryToScene } else { - if ((colourBy_ == cbField) && (fName.ext() == "vtk")) + if (fName.ext() == "vtk") { vtkSmartPointer surf = vtkSmartPointer::New(); @@ -147,7 +147,9 @@ void Foam::functionObjectSurface::addGeometryToScene } else { - geometrySurface::addGeometryToScene(position, renderer); + WarningInFunction + << "Only VTK file types are supported" + << endl; } } }