43 #ifndef __Panzer_STK_Utilities_hpp__
44 #define __Panzer_STK_Utilities_hpp__
48 #include "Epetra_Vector.h"
49 #include "Epetra_MultiVector.h"
52 template <
typename LO,
typename GO>
class UniqueGlobalIndexer;
55 namespace panzer_stk {
67 template <
typename GlobalOrdinal>
69 template <
typename GlobalOrdinal>
78 template <
typename RAContainer,
class Compare>
79 void sorted_permutation(
const RAContainer & cont,std::vector<std::size_t> & permutation,
const Compare & comp);
87 template <
typename RAContainer>
88 void sorted_permutation(
const RAContainer & cont,std::vector<std::size_t> & permutation);
92 namespace panzer_stk {
94 template <
typename RAContainer,
typename Compare>
111 template <
typename RAContainer>
114 std::less<typename RAContainer::value_type> comp;
118 template <
typename RAContainer,
class Compare>
119 void sorted_permutation(
const RAContainer & cont,std::vector<std::size_t> & permutation,
const Compare & comp)
123 permutation.resize(cont.size());
124 for(std::size_t i=0;i<cont.size();i++)
127 std::sort(permutation.begin(),permutation.end(),pf);
void write_solution_data(const panzer::UniqueGlobalIndexer< int, GlobalOrdinal > &dofMngr, panzer_stk::STK_Interface &mesh, const Epetra_MultiVector &x, const std::string &prefix, const std::string &postfix)
PermFunctor(const RAContainer &cont, const Compare &comp)
const RAContainer & values
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)