1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-6 H. Jasak All rights reserved
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 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
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
29 Solver for diagonal matrices
32 Hrvoje Jasak, Wikki Ltd. All rights reserved
37 \*---------------------------------------------------------------------------*/
39 #ifndef BlockDiagonalSolver_H
40 #define BlockDiagonalSolver_H
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
57 class BlockSolverPerformance;
59 /*---------------------------------------------------------------------------*\
60 Class BlockDiagonalSolver Declaration
61 \*---------------------------------------------------------------------------*/
64 class BlockDiagonalSolver
66 public BlockLduSolver<Type>
68 // Private Member Functions
70 //- Disallow default bitwise copy construct
71 BlockDiagonalSolver(const BlockDiagonalSolver<Type>&);
73 //- Disallow default bitwise assignment
74 void operator=(const BlockDiagonalSolver<Type>&);
79 //- Runtime type information
85 //- Construct from matrix
88 const word& fieldName,
89 const BlockLduMatrix<Type>& matrix,
90 const dictionary& dict
96 //- Solve the matrix with this solver
97 virtual BlockSolverPerformance<Type> solve
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 } // End namespace Foam
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 # include "BlockDiagonalSolver.C"
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 // ************************************************************************* //