Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_UtilityAlgs.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Panzer: A partial differential equation assembly
4// engine for strongly coupled complex multiphysics systems
5//
6// Copyright 2011 NTESS and the Panzer contributors.
7// SPDX-License-Identifier: BSD-3-Clause
8// *****************************************************************************
9// @HEADER
10
11#ifndef __Panzer_UtilityAlgs_hpp__
12#define __Panzer_UtilityAlgs_hpp__
13
14#include <vector>
15#include <functional>
16
17namespace panzer{
18
28void reorder(std::vector<int> & order,std::function<void(int,int)> swapper);
29
30}
31
32#endif
void reorder(std::vector< int > &order, std::function< void(int, int)> swapper)
Using a functor, reorder an array using a order vector.