Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_SGInverseModelEvaluator.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_SGINVERSEMODELEVALUATOR_HPP
11 #define STOKHOS_SGINVERSEMODELEVALUATOR_HPP
12 
13 #include "EpetraExt_ModelEvaluator.h"
14 #include "Teuchos_RCP.hpp"
15 #include "Teuchos_Array.hpp"
16 
17 namespace Stokhos {
18 
20 
27  class SGInverseModelEvaluator : public EpetraExt::ModelEvaluator {
28  public:
29 
30  // Constructor
36 
39 
42 
45 
48 
51 
54  get_p_names(int l) const;
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 
77 
80 
83 
85  int num_p;
86 
88  int num_g;
89 
91  int num_p_sg;
92 
94  int num_g_sg;
95 
96  };
97 
98 }
99 
100 #endif // STOKHOS_SGMODELEVALUATOR_HPP
Teuchos::Array< Teuchos::RCP< const Epetra_Map > > base_g_maps
Base maps of block g vectors.
Teuchos::RCP< const Epetra_Map > get_p_map(int l) const
Return parameter vector map.
Teuchos::Array< int > sg_g_index_map
Mapping between stochastic block responses and sg responses.
Teuchos::RCP< const Epetra_Map > get_x_map() const
Return solution vector map.
SGInverseModelEvaluator(const Teuchos::RCP< EpetraExt::ModelEvaluator > &me, const Teuchos::Array< int > &sg_p_index_map, const Teuchos::Array< int > &sg_g_index_map, const Teuchos::Array< Teuchos::RCP< const Epetra_Map > > &base_g_maps)
Teuchos::RCP< EpetraExt::ModelEvaluator > me
Underlying model evaluator.
OutArgs createOutArgs() const
Create OutArgs.
int num_g_sg
Number of stochastic response vectors.
int num_p_sg
Number of stochastic parameter vectors.
void evalModel(const InArgs &inArgs, const OutArgs &outArgs) const
Evaluate model on InArgs.
Nonlinear, inverse stochastic Galerkin ModelEvaluator.
Teuchos::RCP< const Epetra_Map > get_f_map() const
Return residual vector map.
Teuchos::RCP< const Epetra_Map > get_g_map(int l) const
Return response map.
Teuchos::Array< int > sg_p_index_map
Mapping between stochastic block parameters and sg parameters.
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.