00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #ifndef LOCA_EIGENSOLVER_ANASAZISTRATEGY_H
00043 #define LOCA_EIGENSOLVER_ANASAZISTRATEGY_H
00044
00045 #include "LOCA_Eigensolver_AbstractStrategy.H"
00046
00047 #include "Teuchos_ParameterList.hpp"
00048 #include "AnasaziOutputManager.hpp"
00049 #include "Anasazi_LOCA_Sort.H"
00050
00051
00052 namespace Teuchos {
00053 class ParameterList;
00054 }
00055 namespace LOCA {
00056 class GlobalData;
00057 namespace Parameter {
00058 class SublistParser;
00059 }
00060 }
00061
00062 namespace LOCA {
00063
00064 namespace Eigensolver {
00065
00067
00096 class AnasaziStrategy : public LOCA::Eigensolver::AbstractStrategy {
00097
00098 public:
00099
00101
00108 AnasaziStrategy(
00109 const Teuchos::RCP<LOCA::GlobalData>& global_data,
00110 const Teuchos::RCP<LOCA::Parameter::SublistParser>& topParams,
00111 const Teuchos::RCP<Teuchos::ParameterList>& eigenParams);
00112
00114 virtual ~AnasaziStrategy();
00115
00117
00121 virtual NOX::Abstract::Group::ReturnType
00122 computeEigenvalues(
00123 NOX::Abstract::Group& group,
00124 Teuchos::RCP< std::vector<double> >& evals_r,
00125 Teuchos::RCP< std::vector<double> >& evals_i,
00126 Teuchos::RCP< NOX::Abstract::MultiVector >& evecs_r,
00127 Teuchos::RCP< NOX::Abstract::MultiVector >& evecs_i);
00128
00129 private:
00130
00132 AnasaziStrategy(const AnasaziStrategy&);
00133
00135 AnasaziStrategy& operator = (const AnasaziStrategy&);
00136
00137 protected:
00138
00140 Teuchos::RCP<LOCA::GlobalData> globalData;
00141
00143 Teuchos::RCP<LOCA::Parameter::SublistParser> topParams;
00144
00146 typedef NOX::Abstract::MultiVector MV;
00147
00149 typedef LOCA::AnasaziOperator::AbstractStrategy OP;
00150
00152 Teuchos::RCP<Teuchos::ParameterList> eigenParams;
00153
00155 Teuchos::RCP<Teuchos::ParameterList> solverParams;
00156
00158 int blksz;
00159
00161 int nev;
00162
00164 bool isSymmetric;
00165
00167 Teuchos::RCP< Anasazi::SortManager<double> > locaSort;
00168
00169 };
00170
00171 }
00172
00173 }
00174
00175 #endif