- supports redistributePar -decompose -fileHandler collated - supports redistributePar -reconstruct - does not support redistributePar with collated in redistribution mode
67 lines
2.2 KiB
C++
67 lines
2.2 KiB
C++
/*---------------------------------------------------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration |
|
|
\\ / A nd | www.openfoam.com
|
|
\\/ M anipulation |
|
|
-------------------------------------------------------------------------------
|
|
Copyright (C) 2012 OpenFOAM Foundation
|
|
-------------------------------------------------------------------------------
|
|
License
|
|
This file is part of OpenFOAM.
|
|
|
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
|
under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
InNamespace
|
|
Foam
|
|
|
|
Description
|
|
Load or create (0 size) a mesh. Used in distributing meshes to a
|
|
larger number of processors
|
|
|
|
SourceFiles
|
|
loadOrCreateMesh.C
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
#ifndef loadOrCreateMesh_H
|
|
#define loadOrCreateMesh_H
|
|
|
|
#include "fvMesh.H"
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
namespace Foam
|
|
{
|
|
|
|
//- Load (if it exists) or create zero cell mesh given an IOobject:
|
|
// name : regionName
|
|
// instance : exact directory where to find mesh (i.e. does not
|
|
// do a findInstance
|
|
autoPtr<fvMesh> loadOrCreateMesh(const bool decompose, const IOobject& io);
|
|
|
|
//- Remove empty directory. Return true if removed.
|
|
bool removeEmptyDir(const fileName& path);
|
|
|
|
//- Remove empty directories from bottom up
|
|
void removeEmptyDirs(const fileName& path);
|
|
|
|
}
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
#endif
|
|
|
|
// ************************************************************************* //
|