Report patch name instead of index in debug
[foam-extend-3.2.git] / src / foam / fields / CoeffField / tensorCoeffField.C
blob2117f45a548761877081f1d70c1464b04ee23f72
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | foam-extend: Open Source CFD
4    \\    /   O peration     | Version:     3.2
5     \\  /    A nd           | Web:         http://www.foam-extend.org
6      \\/     M anipulation  | For copyright notice see file Copyright
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 \*---------------------------------------------------------------------------*/
26 #include "tensorCoeffField.H"
28 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
30 Foam::CoeffField<Foam::tensor>::CoeffField(const label size)
32     DecoupledCoeffField<tensor>(size)
36 Foam::CoeffField<Foam::tensor>::CoeffField(const CoeffField<tensor>& f)
38     DecoupledCoeffField<tensor>(f)
42 Foam::CoeffField<Foam::tensor>::CoeffField
44     const DecoupledCoeffField<tensor>& f
47     DecoupledCoeffField<tensor>(f)
51 Foam::CoeffField<Foam::tensor>::CoeffField
53     const tmp<DecoupledCoeffField<tensor> >& tf
56     DecoupledCoeffField<tensor>(tf())
60 Foam::CoeffField<Foam::tensor>::CoeffField(Istream& is)
62     DecoupledCoeffField<tensor>(is)
66 // * * * * * * * * * * * * * * * Member Operators  * * * * * * * * * * * * * //
68 void Foam::CoeffField<Foam::tensor>::operator=(const CoeffField<tensor>& f)
70     DecoupledCoeffField<tensor>::operator=(f);
74 void Foam::CoeffField<Foam::tensor>::operator=
76     const tmp<CoeffField<tensor> >& f
79     DecoupledCoeffField<tensor>::operator=(f);
83 void Foam::CoeffField<Foam::tensor>::operator=
85     const CoeffField<tensor>::scalarTypeField& f
88     DecoupledCoeffField<tensor>::operator=(f);
92 void Foam::CoeffField<Foam::tensor>::operator=
94     const tmp<CoeffField<tensor>::scalarTypeField>& f
97     DecoupledCoeffField<tensor>::operator=(f);
101 void Foam::CoeffField<Foam::tensor>::operator=
103     const CoeffField<tensor>::linearTypeField& f
106     DecoupledCoeffField<tensor>::operator=(f);
110 void Foam::CoeffField<Foam::tensor>::operator=
112     const tmp<CoeffField<tensor>::linearTypeField>& f
115     DecoupledCoeffField<tensor>::operator=(f);
119 /* * * * * * * * * * * * * * * * Global functions  * * * * * * * * * * * * * */
121 template<>
122 Foam::tmp<Foam::CoeffField<Foam::tensor> > Foam::inv
124     const CoeffField<tensor>& f
127     const DecoupledCoeffField<tensor>& df = f;
129     return tmp<CoeffField<tensor> >(new CoeffField<tensor>(inv(df)()));
133 // ************************************************************************* //