Amesos Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Amesos.h
Go to the documentation of this file.
1 /*
2 // @HEADER
3 // ***********************************************************************
4 //
5 // Amesos: Direct Sparse Solver Package
6 // Copyright (2004) Sandia Corporation
7 //
8 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
9 // license for use of this work by or on behalf of the U.S. Government.
10 //
11 // This library is free software; you can redistribute it and/or modify
12 // it under the terms of the GNU Lesser General Public License as
13 // published by the Free Software Foundation; either version 2.1 of the
14 // License, or (at your option) any later version.
15 //
16 // This library is distributed in the hope that it will be useful, but
17 // WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 // Lesser General Public License for more details.
20 //
21 // You should have received a copy of the GNU Lesser General Public
22 // License along with this library; if not, write to the Free Software
23 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
24 // USA
25 // Questions? Contact Michael A. Heroux (maherou@sandia.gov)
26 //
27 // ***********************************************************************
28 // @HEADER
29 */
30 
31 #ifndef _AMESOS_FACTORY_H_
32 #define _AMESOS_FACTORY_H_
33 
34 #if defined(Amesos_SHOW_DEPRECATED_WARNINGS)
35 #ifdef __GNUC__
36 #warning "The Amesos package is deprecated"
37 #endif
38 #endif
39 
40 #include "Amesos_BaseSolver.h"
41 
50 class Amesos {
51 public:
52 
55 
76  Amesos_BaseSolver *Create(const char *ClassType,
77  const Epetra_LinearProblem& LinearProblem );
78 
80  Amesos_BaseSolver *Create(const std::string CT,
81  const Epetra_LinearProblem& LinearProblem );
82  // @}
83 
86 
88  bool Query(const char * ClassType);
89 
91  bool Query(const std::string CT);
92 
95 
97 
98 }; // End of class Amesos
99 
100 #endif /* _AMESOS_FACTORY_H_ */
static Teuchos::ParameterList GetValidParameters()
Get the list of valid parameters.
Definition: Amesos.cpp:323
Factory for binding a third party direct solver to an Epetra_LinearProblem.
Definition: Amesos.h:50
Amesos_BaseSolver * Create(const char *ClassType, const Epetra_LinearProblem &LinearProblem)
Amesos Create method.
Definition: Amesos.cpp:72
Amesos_BaseSolver: A pure virtual class for direct solution of real-valued double-precision operators...
bool Query(const char *ClassType)
Queries whether a given interface is available or not.
Definition: Amesos.cpp:205