44 #ifndef EPETRA_MODEL_EVAL_2D_SIM_HPP
45 #define EPETRA_MODEL_EVAL_2D_SIM_HPP
48 #include "Epetra_Map.h"
49 #include "Epetra_Vector.h"
50 #include "Epetra_Comm.h"
51 #include "Epetra_CrsGraph.h"
70 ,
const double p0 = 2.0
71 ,
const double p1 = 0.0
72 ,
const double x00 = 1.0
73 ,
const double x01 = 1.0
74 ,
const bool showGetInvalidArg =
false
81 Teuchos::RCP<const Epetra_Map>
get_x_map()
const;
83 Teuchos::RCP<const Epetra_Map>
get_f_map()
const;
85 Teuchos::RCP<const Epetra_Vector>
get_x_init()
const;
87 Teuchos::RCP<Epetra_Operator>
create_W()
const;
103 bool showGetInvalidArg_;
107 Teuchos::RCP<const Epetra_Comm> epetra_comm_;
108 Teuchos::RCP<const Epetra_Map> map_x_;
110 Teuchos::RCP<Epetra_Vector> x0_;
111 Teuchos::RCP<Epetra_Vector> p_;
113 Teuchos::RCP<Epetra_CrsGraph> W_graph_;
117 #endif // EPETRA_MODEL_EVAL_2D_SIM_HPP
OutArgs createOutArgs() const
Teuchos::RCP< const Epetra_Map > get_f_map() const
Teuchos::RCP< Epetra_Operator > create_W() const
Teuchos::RCP< const Epetra_Vector > get_x_init() const
EpetraModelEval2DSim(const double d=10.0, const double p0=2.0, const double p1=0.0, const double x00=1.0, const double x01=1.0, const bool showGetInvalidArg=false)
Simple example ModelEvaluator subclass for a 2x2 set of parameterized nonlinear equations.
InArgs createInArgs() const
Teuchos::RCP< const Epetra_Map > get_x_map() const
void evalModel(const InArgs &inArgs, const OutArgs &outArgs) const
Base interface for evaluating a stateless "model".