43 #ifndef __Panzer_STK_Utilities_hpp__
44 #define __Panzer_STK_Utilities_hpp__
48 #include "Epetra_Vector.h"
49 #include "Epetra_MultiVector.h"
55 namespace panzer_stk {
76 template <
typename RAContainer,
class Compare>
77 void sorted_permutation(
const RAContainer & cont,std::vector<std::size_t> & permutation,
const Compare & comp);
85 template <
typename RAContainer>
86 void sorted_permutation(
const RAContainer & cont,std::vector<std::size_t> & permutation);
90 namespace panzer_stk {
92 template <
typename RAContainer,
typename Compare>
109 template <
typename RAContainer>
112 std::less<typename RAContainer::value_type> comp;
116 template <
typename RAContainer,
class Compare>
117 void sorted_permutation(
const RAContainer & cont,std::vector<std::size_t> & permutation,
const Compare & comp)
121 permutation.resize(cont.size());
122 for(std::size_t i=0;i<cont.size();i++)
125 std::sort(permutation.begin(),permutation.end(),pf);
PermFunctor(const RAContainer &cont, const Compare &comp)
const RAContainer & values
void write_solution_data(const panzer::GlobalIndexer &dofMngr, panzer_stk::STK_Interface &mesh, const Epetra_MultiVector &x, const std::string &prefix, const std::string &postfix)
void sorted_permutation(const RAContainer &cont, std::vector< std::size_t > &permutation, const Compare &comp)
bool operator()(std::size_t a, std::size_t b) const
PermFunctor(const PermFunctor &p)
void write_cell_data(panzer_stk::STK_Interface &mesh, const std::vector< double > &data, const std::string &fieldName)