1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
30 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 template <class Type, class TrackingData>
33 Foam::label Foam::MeshWave<Type, TrackingData>::dummyTrackData_ = 12345;
36 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
38 // Iterate, propagating changedFacesInfo across mesh, until no change (or
40 template <class Type, class TrackingData>
41 Foam::MeshWave<Type, TrackingData>::MeshWave
44 const labelList& changedFaces,
45 const List<Type>& changedFacesInfo,
50 allFaceInfo_(mesh.nFaces()),
51 allCellInfo_(mesh.nCells()),
65 // Iterate, propagating changedFacesInfo across mesh, until no change (or
66 // maxIter reached). Initial cell values specified.
67 template <class Type, class TrackingData>
68 Foam::MeshWave<Type, TrackingData>::MeshWave
71 const labelList& changedFaces,
72 const List<Type>& changedFacesInfo,
73 const List<Type>& allCellInfo,
78 allFaceInfo_(mesh.nFaces()),
79 allCellInfo_(allCellInfo),
93 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
96 // ************************************************************************* //