BUG: singleCellMesh: writes constant mesh to 0 directory instead.

Fixes partially #93.
This commit is contained in:
mattijs 2016-08-10 15:49:09 +01:00
parent 9ab4bf4001
commit cefe2ea541

View File

@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
@ -100,7 +100,7 @@ int main(int argc, char *argv[])
IOobject IOobject
( (
singleCellName, singleCellName,
mesh.polyMesh::instance(), mesh.pointsInstance(),
runTime, runTime,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::AUTO_WRITE IOobject::AUTO_WRITE
@ -108,6 +108,8 @@ int main(int argc, char *argv[])
mesh mesh
) )
); );
scMesh().setInstance(mesh.pointsInstance());
// For convenience create any fv* files // For convenience create any fv* files
if (!exists(scMesh().fvSolution::objectPath())) if (!exists(scMesh().fvSolution::objectPath()))
{ {
@ -140,7 +142,7 @@ int main(int argc, char *argv[])
IOobject IOobject
( (
singleCellName, singleCellName,
mesh.polyMesh::instance(), mesh.pointsInstance(),
runTime, runTime,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::AUTO_WRITE IOobject::AUTO_WRITE