Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_MPModelEvaluatorAdapter.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Stokhos Package
4 //
5 // Copyright 2009 NTESS and the Stokhos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef STOKHOS_MP_MODEL_EVALUATOR_ADAPTER_HPP
11 #define STOKHOS_MP_MODEL_EVALUATOR_ADAPTER_HPP
12 
13 #include "EpetraExt_ModelEvaluator.h"
14 
15 #include "Teuchos_RCP.hpp"
16 #include "Teuchos_Array.hpp"
17 
18 namespace Stokhos {
19 
24  class MPModelEvaluatorAdapter : public EpetraExt::ModelEvaluator {
25  public:
26 
27  // Constructor
30 
33 
36 
39 
42 
45 
48  get_p_names(int l) const;
49 
52 
55 
58 
60  InArgs createInArgs() const;
61 
63  OutArgs createOutArgs() const;
64 
66  void evalModel(const InArgs& inArgs, const OutArgs& outArgs) const;
67 
69 
70  protected:
71 
74 
75  };
76 
77 }
78 
79 #endif // STOKHOS_MP_MODEL_EVALUATOR_ADAPTER_HPP
Teuchos::RCP< const Epetra_Map > get_g_map(int l) const
Return observation vector map.
ModelEvaluator adapter that implements the multi-point evaluations through sampling.
MPModelEvaluatorAdapter(const Teuchos::RCP< EpetraExt::ModelEvaluator > &me)
Teuchos::RCP< const Epetra_Map > get_f_map() const
Return residual vector map.
void evalModel(const InArgs &inArgs, const OutArgs &outArgs) const
Evaluate model on InArgs.
Teuchos::RCP< const Epetra_Vector > get_x_init() const
Return initial solution.
Teuchos::RCP< const Epetra_Map > get_x_map() const
Return solution vector map.
Teuchos::RCP< const Epetra_Map > get_p_map(int l) const
Return parameter vector map.
Teuchos::RCP< const Epetra_Vector > get_p_init(int l) const
Return initial parameters.
Teuchos::RCP< const Teuchos::Array< std::string > > get_p_names(int l) const
Return array of parameter names.
Teuchos::RCP< Epetra_Operator > create_W() const
Create W = alpha*M + beta*J matrix.
Teuchos::RCP< EpetraExt::ModelEvaluator > me
Underlying model evaluator.
OutArgs createOutArgs() const
Create OutArgs.