OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

simpleGeomDecomp.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     Foam::simpleGeomDecomp
00027 
00028 Description
00029 
00030 SourceFiles
00031     simpleGeomDecomp.C
00032 
00033 \*---------------------------------------------------------------------------*/
00034 
00035 #ifndef simpleGeomDecomp_H
00036 #define simpleGeomDecomp_H
00037 
00038 #include "geomDecomp.H"
00039 
00040 namespace Foam
00041 {
00042 
00043 /*---------------------------------------------------------------------------*\
00044                            Class simpleGeomDecomp Declaration
00045 \*---------------------------------------------------------------------------*/
00046 
00047 class simpleGeomDecomp
00048 :
00049     public geomDecomp
00050 {
00051     // Private Member Functions
00052 
00053         void assignToProcessorGroup(labelList& processorGroup, const label);
00054 
00055         //- Disallow default bitwise copy construct and assignment
00056         void operator=(const simpleGeomDecomp&);
00057         simpleGeomDecomp(const simpleGeomDecomp&);
00058 
00059 
00060 public:
00061 
00062     //- Runtime type information
00063     TypeName("simple");
00064 
00065 
00066     // Constructors
00067 
00068         //- Construct given the decomposition dictionary
00069         simpleGeomDecomp(const dictionary& decompositionDict);
00070 
00071         //- Construct given the decomposition dictionary and mesh
00072         simpleGeomDecomp
00073         (
00074             const dictionary& decompositionDict,
00075             const polyMesh& mesh
00076         );
00077 
00078 
00079     // Destructor
00080 
00081         virtual ~simpleGeomDecomp()
00082         {}
00083 
00084 
00085     // Member Functions
00086 
00087         virtual bool parallelAware() const
00088         {
00089             // simple decomp does not attempt to do anything across proc
00090             // boundaries
00091             return false;
00092         }
00093 
00094         virtual labelList decompose(const pointField&);
00095 
00096         //- Explicitly provided connectivity
00097         virtual labelList decompose
00098         (
00099             const labelListList& globalCellCells,
00100             const pointField& cc
00101         )
00102         {
00103             return decompose(cc);
00104         }
00105 };
00106 
00107 
00108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00109 
00110 } // End namespace Foam
00111 
00112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00113 
00114 #endif
00115 
00116 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd