43 #ifndef PANZER_GLOBAL_STATISTICS_DECL_HPP
44 #define PANZER_GLOBAL_STATISTICS_DECL_HPP
49 #include "Phalanx_Evaluator_Macros.hpp"
50 #include "Phalanx_MDField.hpp"
51 #include "Kokkos_DynRankView.hpp"
52 #include "Teuchos_Comm.hpp"
60 template<
typename EvalT,
typename Traits>
64 public PHX::EvaluatorDerived<EvalT, Traits>
94 PHX::MDField<ScalarT,Cell>
tmp;
96 PHX::MDField<ScalarT,Cell,IP>
ones;
const PHX::FieldTag & getRequiredFieldTag()
void evaluateFields(typename Traits::EvalData d)
std::vector< ScalarT > global_averages
void postprocess(std::ostream &os)
ScalarT global_total_volume
Teuchos::RCP< const Teuchos::Comm< int > > comm
Teuchos::RCP< panzer::GlobalData > global_data
std::vector< ScalarT > mins
GlobalStatistics(const Teuchos::ParameterList &p)
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
void preEvaluate(typename Traits::PreEvalData d)
PHX::MDField< ScalarT, Cell > volumes
std::vector< ScalarT > maxs
void postEvaluate(typename Traits::PostEvalData d)
std::vector< ScalarT > averages
PHX::MDField< ScalarT, Cell > tmp
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &fm)
std::vector< ScalarT > global_mins
PHX::MDField< ScalarT, Cell, IP > ones
typename EvalT::ScalarT ScalarT
std::vector< ScalarT > global_maxs
std::vector< PHX::MDField< const ScalarT, Cell, IP > > field_values