Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_ModelEvaluator_Utilities.hpp
Go to the documentation of this file.
1#ifndef PANZER_MODEL_EVALUATOR_UTILITIES_HPP
2#define PANZER_MODEL_EVALUATOR_UTILITIES_HPP
3
4#include <string>
5#include <tuple>
6
7namespace Thyra {
8 template<typename ScalarT> class ModelEvaluator;
9}
10
11namespace panzer {
13 std::tuple<int,int> findParameterIndex(const std::string& p_name,const Thyra::ModelEvaluator<double>& me, const bool& throw_if_not_found=true);
14
16 std::tuple<int,int> findResponseIndex(const std::string& g_name,const Thyra::ModelEvaluator<double>& me, const bool& throw_if_not_found=true);
17}
18
19#endif
std::tuple< int, int > findParameterIndex(const std::string &p_name, const Thyra::ModelEvaluator< double > &me, const bool &throw_if_not_found=true)
Given a parameter name and a ModelEvaluator, returns the index and subindex of the parameter in the M...
std::tuple< int, int > findResponseIndex(const std::string &g_name, const Thyra::ModelEvaluator< double > &me, const bool &throw_if_not_found=true)
Given a response name and a ModelEvaluator, returns the index and subindex of the response in the Mod...