11 #ifndef __PANZER_STK_GatherRefCoords_impl_hpp__ 
   12 #define __PANZER_STK_GatherRefCoords_impl_hpp__ 
   14 #include "Teuchos_Assert.hpp" 
   15 #include "Phalanx_DataLayout.hpp" 
   19 #include "Teuchos_FancyOStream.hpp" 
   25 template<
typename EvalT, 
typename Traits> 
 
   29                 const std::string & fieldName)
 
   37   this->addEvaluatedField(coordField_);
 
   39   this->setName(
"Gather STK Fields");
 
   43 template<
typename EvalT, 
typename Traits> 
 
   47    const std::vector<stk::mesh::Entity> & localElements = *mesh_->getElementsOrderedByLID();
 
   50    const std::vector<std::size_t> & localCellIds = this->wda(workset).cell_local_ids;
 
   53    std::vector<stk::mesh::Entity> selected_elements;
 
   54    for(std::size_t cell=0;cell<localCellIds.size();cell++)
 
   55      selected_elements.push_back(localElements[localCellIds[cell]]);
 
   57    auto coordField = coordField_.get_view();
 
   58    mesh_->getElementVertices_FromCoordsNoResize(selected_elements,coordField);
 
void evaluateFields(typename Traits::EvalData d)
Teuchos::RCP< PHX::DataLayout > functional_grad
<Cell,Basis,Dim>