Remove trailing whitespace systematically
[foam-extend-3.2.git] / src / foam / primitives / BlockCoeff / BlockCoeffNorm / BlockCoeffMaxNorm / BlockCoeffMaxNorm.H
blob772751950a973e654c80ce8d05f0618f05f0dcdb
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | foam-extend: Open Source CFD
4    \\    /   O peration     |
5     \\  /    A nd           | For copyright notice see file Copyright
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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/>.
24 Class
25     BlockCoeffMaxNorm
27 Description
28     Class for BlockCoeff maximum element magnitude norm.
30 Author
31     Klas Jareteg, 2013-03-07
33 SourceFiles
34     BlockCoeffMaxNorm.C
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 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 namespace Foam
52 // * * * * * * Forward declaration of template friend fuctions * * * * * * * //
55 /*---------------------------------------------------------------------------*\
56                         Class BlockCoeffMaxNorm Declaration
57 \*---------------------------------------------------------------------------*/
59 template<class Type>
60 class BlockCoeffMaxNorm
62     public BlockCoeffNorm<Type>
64     // Private data
66         //- Control data dictionary
67         dictionary dict_;
69 protected:
71     // Protected data types
74     // Protected data
77     // Protected Member Functions
79         //- Return dictionary
80         const dictionary& dict() const
81         {
82             return dict_;
83         }
85 public:
87     //- Runtime type information
88     TypeName("maxNorm");
91     // Constructors
93         //- Construct from dictionary
94         BlockCoeffMaxNorm
95         (
96             const dictionary& dict
97         );
99     // Destructor
101         virtual ~BlockCoeffMaxNorm()
102         {}
105     // Member functions
107         //- Solve
108         virtual scalar normalize
109         (
110             const BlockCoeff<Type>& a
111         );
113         virtual void coeffMag
114         (
115             const CoeffField<Type>& a,
116             Field<scalar>& b
117         );
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 } // End namespace Foam
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 #ifdef NoRepository
128 #   include "BlockCoeffMaxNorm.C"
129 #endif
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 #endif
135 // ************************************************************************* //