|
Stratimikos Package Browser (Single Doxygen Collection)
Version of the Day
|
00001 /* 00002 // @HEADER 00003 // *********************************************************************** 00004 // 00005 // Stratimikos: Thyra-based strategies for linear solvers 00006 // Copyright (2006) Sandia Corporation 00007 // 00008 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive 00009 // license for use of this work by or on behalf of the U.S. Government. 00010 // 00011 // Redistribution and use in source and binary forms, with or without 00012 // modification, are permitted provided that the following conditions are 00013 // met: 00014 // 00015 // 1. Redistributions of source code must retain the above copyright 00016 // notice, this list of conditions and the following disclaimer. 00017 // 00018 // 2. Redistributions in binary form must reproduce the above copyright 00019 // notice, this list of conditions and the following disclaimer in the 00020 // documentation and/or other materials provided with the distribution. 00021 // 00022 // 3. Neither the name of the Corporation nor the names of the 00023 // contributors may be used to endorse or promote products derived from 00024 // this software without specific prior written permission. 00025 // 00026 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY 00027 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00028 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00029 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE 00030 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00031 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00032 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 00033 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 00034 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 00035 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00036 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00037 // 00038 // Questions? Contact Roscoe A. Bartlett (rabartl@sandia.gov) 00039 // 00040 // *********************************************************************** 00041 // @HEADER 00042 */ 00043 00044 #ifndef THYRA_AMESOS_TYPES_HPP 00045 #define THYRA_AMESOS_TYPES_HPP 00046 00047 #include "Amesos_ConfigDefs.h" 00048 #include "Teuchos_StringToIntMap.hpp" 00049 00050 namespace Thyra { 00051 00052 namespace Amesos { 00053 00057 enum ESolverType { 00058 LAPACK 00059 #ifdef HAVE_AMESOS_KLU 00060 ,KLU 00061 #endif 00062 #ifdef HAVE_AMESOS_UMFPACK 00063 ,UMFPACK 00064 #endif 00065 #ifdef HAVE_AMESOS_SUPERLU 00066 ,SUPERLU 00067 #endif 00068 #ifdef HAVE_AMESOS_SUPERLUDIST 00069 ,SUPERLUDIST 00070 #endif 00071 #ifdef HAVE_AMESOS_TAUCS 00072 ,TAUCS 00073 #endif 00074 #ifdef HAVE_AMESOS_PARDISO 00075 ,PARDISO 00076 #endif 00077 #ifdef HAVE_AMESOS_PASTIX 00078 ,PASTIX 00079 #endif 00080 #ifdef HAVE_AMESOS_PARAKLETE 00081 ,PARAKLETE 00082 #endif 00083 #ifdef HAVE_AMESOS_MUMPS 00084 ,MUMPS 00085 #endif 00086 #ifdef HAVE_AMESOS_SCALAPACK 00087 ,SCALAPACK 00088 #endif 00089 #ifdef HAVE_AMESOS_DSCPACK 00090 ,DSCPACK 00091 #endif 00092 }; 00093 00097 const int numSolverTypes = 1 // LAPACK 00098 #ifdef HAVE_AMESOS_KLU 00099 +1 00100 #endif 00101 #ifdef HAVE_AMESOS_UMFPACK 00102 +1 00103 #endif 00104 #ifdef HAVE_AMESOS_SUPERLU 00105 +1 00106 #endif 00107 #ifdef HAVE_AMESOS_SUPERLUDIST 00108 +1 00109 #endif 00110 #ifdef HAVE_AMESOS_TAUCS 00111 +1 00112 #endif 00113 #ifdef HAVE_AMESOS_PARDISO 00114 +1 00115 #endif 00116 #ifdef HAVE_AMESOS_PASTIX 00117 +1 00118 #endif 00119 #ifdef HAVE_AMESOS_PARAKLETE 00120 +1 00121 #endif 00122 #ifdef HAVE_AMESOS_MUMPS 00123 +1 00124 #endif 00125 #ifdef HAVE_AMESOS_SCALAPACK 00126 +1 00127 #endif 00128 #ifdef HAVE_AMESOS_DSCPACK 00129 +1 00130 #endif 00131 ; 00132 00136 extern const ESolverType solverTypeValues[numSolverTypes]; 00137 00141 extern const char* solverTypeNames[numSolverTypes]; 00142 00146 extern const bool supportsUnsymmetric[numSolverTypes]; 00147 00151 inline const char* toString(const ESolverType solverType) 00152 { return solverTypeNames[solverType]; } 00153 00157 extern Teuchos::StringToIntMap solverTypeNameToEnumMap; 00158 00162 enum ERefactorizationPolicy { 00163 REPIVOT_ON_REFACTORIZATION 00164 ,NO_PIVOT_ON_REFACTORIZATION 00165 }; 00166 00170 const int numRefactorizationPolices = 2; 00171 00175 extern const ERefactorizationPolicy refactorizationPolicyValues[numRefactorizationPolices]; 00176 00178 extern const char* refactorizationPolicyNames[numRefactorizationPolices]; 00179 00183 inline const char* toString(const ERefactorizationPolicy refactorizationPolicy) 00184 { return refactorizationPolicyNames[refactorizationPolicy]; } 00185 00189 extern Teuchos::StringToIntMap refactorizationPolicyNameToEnumMap; 00190 00191 } // namespace Amesos 00192 00193 } // namespace Thyra 00194 00195 #endif // THYRA_AMESOS_TYPES_HPP
1.7.6.1