Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / src / OpenFOAM / matrices / lduMatrix / solvers / GAMG / interfaceFields / processorCyclicGAMGInterfaceField / processorCyclicGAMGInterfaceField.C
blob37028f2fe6daa68658e0c163a8e5163e7a98c153
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2010-2010 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
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
19     for more details.
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 \*---------------------------------------------------------------------------*/
26 #include "processorCyclicGAMGInterfaceField.H"
27 #include "addToRunTimeSelectionTable.H"
28 #include "lduMatrix.H"
30 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 namespace Foam
34     defineTypeNameAndDebug(processorCyclicGAMGInterfaceField, 0);
35     addToRunTimeSelectionTable
36     (
37         GAMGInterfaceField,
38         processorCyclicGAMGInterfaceField,
39         lduInterface
40     );
44 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
46 Foam::processorCyclicGAMGInterfaceField::processorCyclicGAMGInterfaceField
48     const GAMGInterface& GAMGCp,
49     const lduInterfaceField& fineInterface
52     processorGAMGInterfaceField(GAMGCp, fineInterface)
56 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
58 Foam::processorCyclicGAMGInterfaceField::~processorCyclicGAMGInterfaceField()
62 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
64 //void Foam::processorCyclicGAMGInterfaceField::initInterfaceMatrixUpdate
65 //(
66 //    const scalarField& psiInternal,
67 //    scalarField&,
68 //    const lduMatrix&,
69 //    const scalarField&,
70 //    const direction,
71 //    const Pstream::commsTypes commsType
72 //) const
73 //{
74 //    procInterface_.compressedSend
75 //    (
76 //        commsType,
77 //        procInterface_.interfaceInternalField(psiInternal)()
78 //    );
79 //}
82 //void Foam::processorCyclicGAMGInterfaceField::updateInterfaceMatrix
83 //(
84 //    const scalarField&,
85 //    scalarField& result,
86 //    const lduMatrix&,
87 //    const scalarField& coeffs,
88 //    const direction cmpt,
89 //    const Pstream::commsTypes commsType
90 //) const
91 //{
92 //    scalarField pnf
93 //    (
94 //        procInterface_.compressedReceive<scalar>(commsType, coeffs.size())
95 //    );
96 //    transformCoupleField(pnf, cmpt);
98 //    const labelUList& faceCells = procInterface_.faceCells();
100 //    forAll(faceCells, elemI)
101 //    {
102 //        result[faceCells[elemI]] -= coeffs[elemI]*pnf[elemI];
103 //    }
107 // ************************************************************************* //