11#ifndef __Panzer_Response_ExtremeValue_hpp__
12#define __Panzer_Response_ExtremeValue_hpp__
19#include "Teuchos_RCP.hpp"
21#include "Thyra_VectorBase.hpp"
22#include "Thyra_VectorSpaceBase.hpp"
24#include "PanzerDiscFE_config.hpp"
25#ifdef PANZER_HAVE_EPETRA_STACK
26#include "Epetra_Map.h"
27#include "Epetra_Vector.h"
28#include "Epetra_MpiComm.h"
44template <
typename EvalT>
65 using Teuchos::rcp_dynamic_cast;
77 value = -std::numeric_limits<ScalarT>::max();
79 value = std::numeric_limits<ScalarT>::max();
93 {
return Teuchos::rcp_dynamic_cast<const ThyraObjContainer<double> >(
ghostedContainer_)->get_x_th(); }
void setSolnVectorSpace(const Teuchos::RCP< const Thyra::VectorSpaceBase< double > > &soln_vs)
Set solution vector space.
virtual std::size_t localSizeRequired() const
What is the number of values you need locally.
ScalarT value
provide direct access, this thing is pretty simple
Teuchos::RCP< LinearObjContainer > ghostedContainer_
void adjustForDirichletConditions(const GlobalEvaluationData &localBCRows, const GlobalEvaluationData &globalBCRows)
Response_ExtremeValue(const Response_ExtremeValue &)
Response_ExtremeValue(const std::string &responseName, MPI_Comm comm, bool useMax, const Teuchos::RCP< const panzer::LinearObjFactory< panzer::Traits > > &linObjFact=Teuchos::null)
virtual void scatterResponse()
This simply does global summation, then shoves the result into a vector.
virtual bool vectorIsDistributed() const
Is the vector distributed (or replicated)
Teuchos::RCP< LinearObjContainer > uniqueContainer_
Teuchos::RCP< Thyra::VectorBase< double > > getGhostedVector() const
Get ghosted responses (this will be filled by the evaluator)
Teuchos::RCP< const panzer::LinearObjFactory< panzer::Traits > > linObjFactory_
Teuchos::RCP< const panzer::ThyraObjFactory< double > > thyraObjFactory_
virtual void initializeResponse()