1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2010-2010 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
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
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 * * * * * * * * * * * * * //
34 defineTypeNameAndDebug(processorCyclicGAMGInterfaceField, 0);
35 addToRunTimeSelectionTable
38 processorCyclicGAMGInterfaceField,
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
66 // const scalarField& psiInternal,
69 // const scalarField&,
71 // const Pstream::commsTypes commsType
74 // procInterface_.compressedSend
77 // procInterface_.interfaceInternalField(psiInternal)()
82 //void Foam::processorCyclicGAMGInterfaceField::updateInterfaceMatrix
84 // const scalarField&,
85 // scalarField& result,
87 // const scalarField& coeffs,
88 // const direction cmpt,
89 // const Pstream::commsTypes commsType
94 // procInterface_.compressedReceive<scalar>(commsType, coeffs.size())
96 // transformCoupleField(pnf, cmpt);
98 // const labelUList& faceCells = procInterface_.faceCells();
100 // forAll(faceCells, elemI)
102 // result[faceCells[elemI]] -= coeffs[elemI]*pnf[elemI];
107 // ************************************************************************* //