VMTK
Loading...
Searching...
No Matches
vtkvmtkLinearSystemSolver.cxx
Go to the documentation of this file.
1/*=========================================================================
2
3Program: VMTK
4Module: $RCSfile: vtkvmtkLinearSystemSolver.cxx,v $
5Language: C++
6Date: $Date: 2005/03/04 11:07:29 $
7Version: $Revision: 1.3 $
8
9 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
10 See LICENSE file for details.
11
12 Portions of this code are covered under the VTK copyright.
13 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
14 for details.
15
16 This software is distributed WITHOUT ANY WARRANTY; without even
17 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18 PURPOSE. See the above copyright notices for more information.
19
20=========================================================================*/
21
23#include "vtkvmtkConstants.h"
24#include "vtkObjectFactory.h"
25
26
28
39
41{
42 if (this->LinearSystem)
43 {
44 this->LinearSystem->Delete();
45 this->LinearSystem = NULL;
46 }
47}
48
50{
51 if (this->LinearSystem==NULL)
52 {
53 vtkErrorMacro(<< "Linear system not set!");
54 return -1;
55 }
56
57 if (this->LinearSystem->CheckSystem()==-1)
58 {
59 return -1;
60 }
61
62 return 0;
63}
Serves as the base class for linear-system-of-equations solver implementations.
#define VTK_VMTK_LARGE_INTEGER
#define VTK_VMTK_LARGE_DOUBLE
vtkStandardNewMacro(vtkvmtkLinearSystemSolver)