1 #include "RBGen_EpetraMVMethodFactory.h"
2 #include "RBGen_LapackPOD.h"
3 #include "Teuchos_Assert.hpp"
5 #ifdef HAVE_RBGEN_ANASAZI
7 #include "RBGen_ISVD_SingleUDV.h"
8 #include "RBGen_ISVD_MultiCDUDV.h"
9 #include "RBGen_ISVD_MultiSDAUDV.h"
10 #include "RBGen_ISVD_MultiSDBUDV.h"
11 #include "RBGen_StSVD_RTR.h"
24 std::string method = Teuchos::getParameter<std::string>(
const_cast<Teuchos::ParameterList&
>(rbmethod_params),
30 if ( method ==
"Lapack POD" ) {
35 #ifdef HAVE_RBGEN_ANASAZI
36 else if ( method ==
"IncSVD POD" ) {
37 std::string incsvdmethod = rbmethod_params.get<std::string>(
"IncSVD Method");
38 if ( incsvdmethod ==
"Single/UDV" ) {
41 else if ( incsvdmethod ==
"MultiCD/UDV" ) {
44 else if ( incsvdmethod ==
"MultiSDA/UDV" ) {
47 else if ( incsvdmethod ==
"MultiSDB/UDV" ) {
51 else if ( method ==
"StSVD/RTR") {
54 else if ( method ==
"Anasazi POD" ) {
59 std::string err_str =
"Reduced basis method, 'Method = " + method +
"', is not recognized!";
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Provides POD method using Anasazi eigensolvers.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
bool isSublist(const std::string &name) const
ParameterList & sublist(const std::string &name, bool mustAlreadyExist=false, const std::string &docString="")