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_EPETRA_TRANSPOSELINEARSYSTEM_TRANSPOSEPRECONDITIONER_H
00043 #define LOCA_EPETRA_TRANSPOSELINEARSYSTEM_TRANSPOSEPRECONDITIONER_H
00044
00045 #include "LOCA_Epetra_TransposeLinearSystem_AbstractStrategy.H"
00046
00047
00048 namespace Teuchos {
00049 class ParameterList;
00050 }
00051 namespace NOX {
00052 namespace Epetra {
00053 class LinearSystem;
00054 class Scaling;
00055 }
00056 }
00057 namespace LOCA {
00058 class GlobalData;
00059 }
00060
00061 namespace LOCA {
00062
00063 namespace Epetra {
00064
00065 namespace TransposeLinearSystem {
00066
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080 class TransposePreconditioner : public virtual AbstractStrategy {
00081
00082 public:
00083
00085 TransposePreconditioner(
00086 const Teuchos::RCP<LOCA::GlobalData>& global_data,
00087 const Teuchos::RCP<Teuchos::ParameterList>& solverParams,
00088 const Teuchos::RCP<NOX::Epetra::LinearSystem>& linsys);
00089
00091 virtual ~TransposePreconditioner();
00092
00104 virtual bool
00105 applyJacobianTransposeInverse(Teuchos::ParameterList ¶ms,
00106 const NOX::Epetra::Vector &input,
00107 NOX::Epetra::Vector &result);
00108
00109
00110
00112
00117 virtual bool
00118 createJacobianTranspose();
00119
00129 virtual bool
00130 createTransposePreconditioner(const NOX::Epetra::Vector& x,
00131 Teuchos::ParameterList& p);
00132
00134 virtual Teuchos::RCP<Epetra_Operator>
00135 getJacobianTransposeOperator();
00136
00138 virtual Teuchos::RCP<Epetra_Operator>
00139 getTransposePreconditioner();
00140
00142 virtual void setJacobianTransposeOperator(
00143 const Teuchos::RCP<Epetra_Operator>& new_jac_trans);
00144
00146 virtual void setTransposePreconditioner(
00147 const Teuchos::RCP<Epetra_Operator>& new_prec_trans);
00148
00149 protected:
00150
00152 Teuchos::RCP<LOCA::GlobalData> globalData;
00153
00155 Teuchos::RCP<NOX::Epetra::LinearSystem> linsys;
00156
00158 Teuchos::RCP<Epetra_Operator> jac;
00159
00161 Teuchos::RCP<Epetra_Operator> prec;
00162
00164 Teuchos::RCP<NOX::Epetra::Scaling> scaling_trans;
00165
00166 };
00167
00168 }
00169
00170 }
00171
00172 }
00173
00174
00175 #endif