Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_ResponseStatisticModelEvaluator.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_RESPONSE_STATISTIC_MODEL_EVALUATOR_HPP
11 #define STOKHOS_RESPONSE_STATISTIC_MODEL_EVALUATOR_HPP
12 
13 #include "EpetraExt_ModelEvaluator.h"
14 #include "Teuchos_RCP.hpp"
15 #include "Teuchos_Array.hpp"
16 #include "Epetra_Map.h"
18 #include "EpetraExt_MultiComm.h"
19 
20 namespace Stokhos {
21 
23 
31  class ResponseStatisticModelEvaluator : public EpetraExt::ModelEvaluator {
32  public:
33 
34  // Constructor
41 
44 
47 
50 
53 
56 
59  get_p_names(int l) const;
60 
63 
65  InArgs createInArgs() const;
66 
68  OutArgs createOutArgs() const;
69 
71  void evalModel(const InArgs& inArgs, const OutArgs& outArgs) const;
72 
74 
75  protected:
76 
79 
82 
85 
88 
91 
93  int num_p;
94 
96  int num_g;
97 
98  };
99 
100 }
101 
102 #endif //STOKHOS_RESPONSE_STATISTIC_MODEL_EVALUATOR_HPP
Teuchos::RCP< const Epetra_Map > get_g_map(int l) const
Return response map.
Teuchos::RCP< const Epetra_Vector > get_p_init(int l) const
Return initial parameters.
Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > sg_basis
Stochastic Galerkin basis.
void evalModel(const InArgs &inArgs, const OutArgs &outArgs) const
Evaluate model on InArgs.
ModelEvaluator providing statistic response functions.
Teuchos::Array< Teuchos::RCP< const Epetra_Map > > base_g_maps
Base maps of block g vectors.
Teuchos::RCP< const Epetra_Map > get_f_map() const
Return residual vector map.
Teuchos::RCP< const Teuchos::Array< std::string > > get_p_names(int l) const
Return array of parameter names.
Teuchos::RCP< const EpetraExt::MultiComm > sg_comm
Parallel SG communicator.
Teuchos::RCP< const Epetra_Map > get_p_map(int l) const
Return parameter vector map.
Teuchos::RCP< const Epetra_Map > get_x_map() const
Return solution vector map.
ResponseStatisticModelEvaluator(const Teuchos::RCP< EpetraExt::ModelEvaluator > &me, const Teuchos::Array< Teuchos::RCP< const Epetra_Map > > &base_g_maps, const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &sg_basis, const Teuchos::RCP< const EpetraExt::MultiComm > &sg_comm, const Teuchos::RCP< const Epetra_BlockMap > &block_map)
Teuchos::RCP< EpetraExt::ModelEvaluator > me
Underlying model evaluator.
Teuchos::RCP< const Epetra_BlockMap > block_map
Map for stochastic blocks.