fixed writing out entries in advective bc
[OpenFOAM-1.6-ext.git] / src / OpenFOAM / matrices / blockLduMatrix / BlockLduPrecons / BlockCholeskyPrecon / tensorBlockCholeskyPrecon.C
blobbb2f2a63b705716863673991771d004f79af2682
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2004-6 H. Jasak All rights reserved
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 \*---------------------------------------------------------------------------*/
27 #ifndef tensorBlockCholeskyPrecon_H
28 #define tensorBlockCholeskyPrecon_H
30 #include "BlockCholeskyPrecon.H"
32 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
34 namespace Foam
37 template<>
38 void Foam::BlockCholeskyPrecon<tensor>::calcPreconDiag()
40     // Decoupled version
41     calcDecoupledPreconDiag();
45 template<>
46 void Foam::BlockCholeskyPrecon<tensor>::precondition
48     tensorField& x,
49     const tensorField& b
50 ) const
52     // Decoupled version
53     decoupledPrecondition(x, b);
57 template<>
58 void Foam::BlockCholeskyPrecon<tensor>::preconditionT
60     tensorField& xT,
61     const tensorField& bT
62 ) const
64     // Decoupled version
65     decoupledPreconditionT(xT, bT);
69 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
71 } // End namespace Foam
73 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
75 #endif
77 // ************************************************************************* //