initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / OpenFOAM / fields / pointPatchFields / constraint / empty / emptyPointPatchField.C
blob1cc01be356016c8fa4e4257e23b5f2179f66518a
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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 the
13     Free Software Foundation; either version 2 of the License, or (at your
14     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
19     for more details.
21     You should have received a copy of the GNU General Public License
22     along with OpenFOAM; if not, write to the Free Software Foundation,
23     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 \*---------------------------------------------------------------------------*/
27 #include "emptyPointPatchField.H"
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31 namespace Foam
34 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
36 template<class Type>
37 emptyPointPatchField<Type>::emptyPointPatchField
39     const pointPatch& p,
40     const DimensionedField<Type, pointMesh>& iF
43     pointPatchField<Type>(p, iF)
47 template<class Type>
48 emptyPointPatchField<Type>::emptyPointPatchField
50     const pointPatch& p,
51     const DimensionedField<Type, pointMesh>& iF,
52     const dictionary& dict
55     pointPatchField<Type>(p, iF, dict)
57     if (!isType<emptyPointPatch>(p))
58     {
59         FatalIOErrorIn
60         (
61             "emptyPointPatchField<Type>::emptyPointPatchField\n"
62             "(\n"
63             "    const pointPatch& p,\n"
64             "    const Field<Type>& field,\n"
65             "    const dictionary& dict\n"
66             ")\n",
67             dict
68         )   << "patch " << this->patch().index() << " not empty type. "
69             << "Patch type = " << p.type()
70             << exit(FatalIOError);
71     }
75 template<class Type>
76 emptyPointPatchField<Type>::emptyPointPatchField
78     const emptyPointPatchField<Type>& ptf,
79     const pointPatch& p,
80     const DimensionedField<Type, pointMesh>& iF,
81     const pointPatchFieldMapper&
84     pointPatchField<Type>(p, iF)
86     if (!isType<emptyPointPatch>(this->patch()))
87     {
88         FatalErrorIn
89         (
90             "emptyPointPatchField<Type>::emptyPointPatchField\n"
91             "(\n"
92             "    const emptyPointPatchField<Type>& ptf,\n"
93             "    const pointPatch& p,\n"
94             "    const DimensionedField<Type, pointMesh>& iF,\n"
95             "    const pointPatchFieldMapper& mapper\n"
96             ")\n"
97         )   << "Field type does not correspond to patch type for patch "
98             << this->patch().index() << "." << endl
99             << "Field type: " << typeName << endl
100             << "Patch type: " << this->patch().type()
101             << exit(FatalError);
102     }
106 template<class Type>
107 emptyPointPatchField<Type>::emptyPointPatchField
109     const emptyPointPatchField<Type>& ptf,
110     const DimensionedField<Type, pointMesh>& iF
113     pointPatchField<Type>(ptf, iF)
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 } // End namespace Foam
121 // ************************************************************************* //