From cefe2ea541e95976a770526ac54fb7f73a5fcf8f Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 10 Aug 2016 15:49:09 +0100 Subject: [PATCH] BUG: singleCellMesh: writes constant mesh to 0 directory instead. Fixes partially #93. --- .../mesh/manipulation/singleCellMesh/singleCellMesh.C | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/applications/utilities/mesh/manipulation/singleCellMesh/singleCellMesh.C b/applications/utilities/mesh/manipulation/singleCellMesh/singleCellMesh.C index e015102ab1..93efe4341f 100644 --- a/applications/utilities/mesh/manipulation/singleCellMesh/singleCellMesh.C +++ b/applications/utilities/mesh/manipulation/singleCellMesh/singleCellMesh.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -100,7 +100,7 @@ int main(int argc, char *argv[]) IOobject ( singleCellName, - mesh.polyMesh::instance(), + mesh.pointsInstance(), runTime, IOobject::NO_READ, IOobject::AUTO_WRITE @@ -108,6 +108,8 @@ int main(int argc, char *argv[]) mesh ) ); + scMesh().setInstance(mesh.pointsInstance()); + // For convenience create any fv* files if (!exists(scMesh().fvSolution::objectPath())) { @@ -140,7 +142,7 @@ int main(int argc, char *argv[]) IOobject ( singleCellName, - mesh.polyMesh::instance(), + mesh.pointsInstance(), runTime, IOobject::NO_READ, IOobject::AUTO_WRITE