1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
5 \\ / A nd | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
28 Class for BlockCoeff maximum element magnitude norm.
31 Klas Jareteg, 2013-03-07
36 \*---------------------------------------------------------------------------*/
38 #ifndef BlockCoeffMaxNorm_H
39 #define BlockCoeffMaxNorm_H
41 #include "blockCoeffs.H"
42 #include "blockCoeffNorms.H"
43 #include "BlockCoeffNorm.H"
44 #include "CoeffField.H"
45 #include "runTimeSelectionTables.H"
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 // * * * * * * Forward declaration of template friend fuctions * * * * * * * //
55 /*---------------------------------------------------------------------------*\
56 Class BlockCoeffMaxNorm Declaration
57 \*---------------------------------------------------------------------------*/
60 class BlockCoeffMaxNorm
62 public BlockCoeffNorm<Type>
66 //- Control data dictionary
71 // Protected data types
77 // Protected Member Functions
80 const dictionary& dict() const
87 //- Runtime type information
93 //- Construct from dictionary
96 const dictionary& dict
101 virtual ~BlockCoeffMaxNorm()
108 virtual scalar normalize
110 const BlockCoeff<Type>& a
113 virtual void coeffMag
115 const CoeffField<Type>& a,
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 } // End namespace Foam
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 # include "BlockCoeffMaxNorm.C"
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 // ************************************************************************* //