Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_MPInverseModelEvaluator.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_MPINVERSEMODELEVALUATOR_HPP
11 #define STOKHOS_MPINVERSEMODELEVALUATOR_HPP
12 
13 #include "EpetraExt_ModelEvaluator.h"
14 
15 #include "Teuchos_RCP.hpp"
16 #include "Teuchos_Array.hpp"
17 
18 namespace Stokhos {
19 
21 
28  class MPInverseModelEvaluator : public EpetraExt::ModelEvaluator {
29  public:
30 
31  // Constructor
37 
40 
43 
46 
49 
52 
55  get_p_names(int l) const;
56 
59 
61  InArgs createInArgs() const;
62 
64  OutArgs createOutArgs() const;
65 
67  void evalModel(const InArgs& inArgs, const OutArgs& outArgs) const;
68 
70 
71  protected:
72 
75 
78 
81 
84 
86  int num_p;
87 
89  int num_g;
90 
92  int num_p_mp;
93 
95  int num_g_mp;
96 
97  };
98 
99 }
100 
101 #endif // STOKHOS_MPMODELEVALUATOR_HPP
OutArgs createOutArgs() const
Create OutArgs.
void evalModel(const InArgs &inArgs, const OutArgs &outArgs) const
Evaluate model on InArgs.
Teuchos::Array< int > mp_p_index_map
Mapping between multipoint block parameters and mp parameters.
int num_g_mp
Number of multi-point response vectors.
MPInverseModelEvaluator(const Teuchos::RCP< EpetraExt::ModelEvaluator > &me, const Teuchos::Array< int > &mp_p_index_map, const Teuchos::Array< int > &mp_g_index_map, const Teuchos::Array< Teuchos::RCP< const Epetra_Map > > &base_g_maps)
int num_p_mp
Number of multi-point parameter vectors.
Teuchos::RCP< const Epetra_Map > get_f_map() const
Return residual vector map.
Teuchos::Array< Teuchos::RCP< const Epetra_Map > > base_g_maps
Base maps of block g vectors.
Teuchos::RCP< const Epetra_Map > get_x_map() const
Return solution vector map.
Teuchos::Array< int > mp_g_index_map
Mapping between stochastic block responses and sg responses.
Teuchos::RCP< const Epetra_Vector > get_p_init(int l) const
Return initial parameters.
Teuchos::RCP< EpetraExt::ModelEvaluator > me
Underlying model evaluator.
Teuchos::RCP< const Teuchos::Array< std::string > > get_p_names(int l) const
Return array of parameter names.
Teuchos::RCP< const Epetra_Map > get_g_map(int l) const
Return response map.
Teuchos::RCP< const Epetra_Map > get_p_map(int l) const
Return parameter vector map.
Nonlinear, inverse multi-point ModelEvaluator.