55 ,
const bool showGetInvalidArg
57 :d_(d),showGetInvalidArg_(showGetInvalidArg)
72 int indices[nx] = { 0, 1 };
73 for(
int i = 0; i < nx; ++i )
137 using Teuchos::rcp_dynamic_cast;
156 f[0] = x[0] + x[1]*x[1] - p[0];
157 f[1] =
d_ * ( x[0]*x[0] - x[1] - p[1] );
171 values[0] = 1.0; indexes[0] = 0;
172 values[1] = 2.0*x[1]; indexes[1] = 1;
175 values[0] = 2.0*
d_*x[0]; indexes[0] = 0;
176 values[1] = -
d_; indexes[1] = 1;
Teuchos::RCP< const Epetra_Map > map_x_
void set_W_properties(const DerivativeProperties &properties)
Evaluation< Epetra_Vector > get_g(int j) const
Get g(j) where 0 <= j && j < this->Ng().
void setSupports(EOutArgsMembers arg, bool supports=true)
OutArgs createOutArgs() const
Teuchos::RCP< Epetra_CrsGraph > W_graph_
Teuchos::RCP< Epetra_Operator > get_W() const
virtual int SumIntoGlobalValues(int GlobalRow, int NumEntries, const double *Values, const int *Indices)
void setSupports(EInArgsMembers arg, bool supports=true)
Teuchos::RCP< const Epetra_Map > get_f_map() const
int InsertGlobalIndices(int_type GlobalRow, int NumIndices, int_type *Indices)
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)
int PutScalar(double ScalarConstant)
void setModelEvalDescription(const std::string &modelEvalDescription)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
InArgs createInArgs() const
T_To & dyn_cast(T_From &from)
Teuchos::RCP< const Epetra_Comm > epetra_comm_
Teuchos::RCP< Epetra_Vector > x0_
virtual std::string description() const
void setModelEvalDescription(const std::string &modelEvalDescription)
Teuchos::RCP< Epetra_Vector > p_
Teuchos::RCP< const Epetra_Map > get_x_map() const
void evalModel(const InArgs &inArgs, const OutArgs &outArgs) const
Evaluation< Epetra_Vector > get_f() const
Teuchos::RCP< const Epetra_Vector > get_x() const
Set solution vector Taylor polynomial.