11 #ifndef __Panzer_FieldSpy_impl_hpp__
12 #define __Panzer_FieldSpy_impl_hpp__
16 #include "Phalanx_DataLayout_MDALayout.hpp"
23 template <
typename EvalT,
typename Traits>
31 this->addEvaluatedField(*dummyField);
34 this->addDependentField(source);
36 std::string n =
"Field Spy";
41 template <
typename EvalT,
typename Traits>
44 std::cout <<
"SPY: Name = \"" << source.fieldTag().identifier() <<
"\" at t = " << workset.
time <<
"\n";
45 for (index_t cell=0;cell<workset.
num_cells;++cell) {
47 for (
int point = 0; point < source.extent_int(1); ++point) {
48 std::cout << Sacado::scalarValue(source(cell,point)) <<
" ";
50 std::cout << std::endl;
int num_cells
DEPRECATED - use: numCells()
void evaluateFields(typename Traits::EvalData d)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
FieldSpy(const std::string &name, const Teuchos::RCP< PHX::DataLayout > &data_layout)