hyper.deal
Loading...
Searching...
No Matches
utilities.h
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2020 by the hyper.deal authors
4//
5// This file is part of the hyper.deal library.
6//
7// The hyper.deal library is free software; you can use it, redistribute
8// it, and/or modify it under the terms of the GNU Lesser General
9// Public License as published by the Free Software Foundation; either
10// version 3.0 of the License, or (at your option) any later version.
11// The full text of the license can be found in the file LICENSE.MD at
12// the top level directory of hyper.deal.
13//
14// ---------------------------------------------------------------------
15
16#ifndef HYPERDEAL_FUNCTIONALITIES_UTIL
17#define HYPERDEAL_FUNCTIONALITIES_UTIL
18
19#include <hyper.deal/base/config.h>
20
21#include <deal.II/base/exceptions.h>
22
23#include <algorithm>
24#include <utility>
25#include <vector>
26
27namespace hyperdeal
28{
29 namespace Utilities
30 {
37 std::pair<unsigned int, unsigned int>
38 lex_to_pair(const unsigned int id,
39 const unsigned int size1,
40 const unsigned int size2);
41
48 std::pair<unsigned int, unsigned int>
49 decompose(const unsigned int &number);
50
54 template <typename StreamType>
55 void
56 print_version(const StreamType &stream);
57 } // namespace Utilities
58} // namespace hyperdeal
59
60#endif