Reference documentation for deal.II version 9.2.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Namespaces | Macros | Functions
utilities.cc File Reference
#include <deal.II/base/config.h>
#include <deal.II/base/exceptions.h>
#include <deal.II/base/mpi.h>
#include <deal.II/base/point.h>
#include <deal.II/base/thread_local_storage.h>
#include <deal.II/base/utilities.h>
#include <boost/archive/iterators/base64_from_binary.hpp>
#include <boost/archive/iterators/binary_from_base64.hpp>
#include <boost/archive/iterators/transform_width.hpp>
#include <boost/iostreams/copy.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/random.hpp>
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cerrno>
#include <cmath>
#include <cstddef>
#include <cstdio>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <sstream>
#include <string>
#include <unistd.h>
#include <cstdlib>
#include <deal.II/lac/trilinos_parallel_block_vector.h>
#include <deal.II/lac/trilinos_vector.h>
#include <deal.II/lac/vector_memory.h>
#include <Epetra_MpiComm.h>
#include <Teuchos_DefaultComm.hpp>
#include <Epetra_SerialComm.h>
#include <Teuchos_RCP.hpp>

Go to the source code of this file.

Namespaces

 Utilities
 
 Utilities::System
 
 Utilities::Trilinos
 

Macros

#define BOOST_BIND_GLOBAL_PLACEHOLDERS
 

Functions

static ::ExceptionBaseUtilities::ExcInvalidNumber2StringConversersion (unsigned int arg1, unsigned int arg2)
 
static ::ExceptionBaseUtilities::ExcInvalidNumber (unsigned int arg1)
 
static ::ExceptionBaseUtilities::ExcCantConvertString (std::string arg1)
 
std::string Utilities::dealii_version_string ()
 
template<int dim, typename Number >
std::vector< std::array< std::uint64_t, dim > > Utilities::inverse_Hilbert_space_filling_curve (const std::vector< Point< dim, Number >> &points, const int bits_per_dim=64)
 
template<int dim>
std::vector< std::array< std::uint64_t, dim > > Utilities::inverse_Hilbert_space_filling_curve (const std::vector< std::array< std::uint64_t, dim >> &points, const int bits_per_dim=64)
 
template<int dim>
std::uint64_t Utilities::pack_integers (const std::array< std::uint64_t, dim > &index, const int bits_per_dim)
 
std::string Utilities::compress (const std::string &input)
 
std::string Utilities::decompress (const std::string &compressed_input)
 
std::string Utilities::encode_base64 (const std::vector< unsigned char > &binary_input)
 
std::vector< unsigned char > Utilities::decode_base64 (const std::string &base64_input)
 
std::string Utilities::int_to_string (const unsigned int value, const unsigned int digits=numbers::invalid_unsigned_int)
 
template<typename number >
std::string Utilities::to_string (const number value, const unsigned int digits=numbers::invalid_unsigned_int)
 
std::string Utilities::replace_in_string (const std::string &input, const std::string &from, const std::string &to)
 
std::string Utilities::trim (const std::string &input)
 
std::string Utilities::dim_string (const int dim, const int spacedim)
 
unsigned int Utilities::needed_digits (const unsigned int max_number)
 
template<typename Number >
Number Utilities::truncate_to_n_digits (const Number number, const unsigned int n_digits)
 
int Utilities::string_to_int (const std::string &s)
 
std::vector< intUtilities::string_to_int (const std::vector< std::string > &s)
 
double Utilities::string_to_double (const std::string &s)
 
std::vector< doubleUtilities::string_to_double (const std::vector< std::string > &s)
 
std::vector< std::string > Utilities::split_string_list (const std::string &s, const std::string &delimiter=",")
 
std::vector< std::string > Utilities::split_string_list (const std::string &s, const char delimiter)
 
std::vector< std::string > Utilities::break_text_into_lines (const std::string &original_text, const unsigned int width, const char delimiter=' ')
 
bool Utilities::match_at_string_start (const std::string &name, const std::string &pattern)
 
std::pair< int, unsigned intUtilities::get_integer_at_position (const std::string &name, const unsigned int position)
 
double Utilities::generate_normal_random_number (const double a, const double sigma)
 
double Utilities::System::get_cpu_load ()
 
const std::string Utilities::System::get_current_vectorization_level ()
 
void Utilities::System::get_memory_stats (MemoryStats &stats)
 
std::string Utilities::System::get_hostname ()
 
std::string Utilities::System::get_time ()
 
std::string Utilities::System::get_date ()
 
void Utilities::System::posix_memalign (void **memptr, std::size_t alignment, std::size_t size)
 
bool Utilities::System::job_supports_mpi ()
 
const Epetra_Comm & Utilities::Trilinos::comm_world ()
 
const Teuchos::RCP< const Teuchos::Comm< int > > & Utilities::Trilinos::tpetra_comm_self ()
 
const Epetra_Comm & Utilities::Trilinos::comm_self ()
 
Epetra_Comm * Utilities::Trilinos::duplicate_communicator (const Epetra_Comm &communicator)
 
void Utilities::Trilinos::destroy_communicator (Epetra_Comm &communicator)
 
unsigned int Utilities::Trilinos::get_n_mpi_processes (const Epetra_Comm &mpi_communicator)
 
unsigned int Utilities::Trilinos::get_this_mpi_process (const Epetra_Comm &mpi_communicator)
 
Epetra_Map Utilities::Trilinos::duplicate_map (const Epetra_BlockMap &map, const Epetra_Comm &comm)
 
template std::string Utilities::to_string< int > (int, unsigned int)
 
template std::string Utilities::to_string< long int > (long int, unsigned int)
 
template std::string Utilities::to_string< long long int > (long long int, unsigned int)
 
template std::string Utilities::to_string< unsigned int > (unsigned int, unsigned int)
 
template std::string Utilities::to_string< unsigned long int > (unsigned long int, unsigned int)
 
template std::string Utilities::to_string< unsigned long long int > (unsigned long long int, unsigned int)
 
template std::string Utilities::to_string< float > (float, unsigned int)
 
template std::string Utilities::to_string< double > (double, unsigned int)
 
template std::string Utilities::to_string< long double > (long double, unsigned int)
 
template double Utilities::truncate_to_n_digits (const double, const unsigned int)
 
template float Utilities::truncate_to_n_digits (const float, const unsigned int)
 
template std::vector< std::array< std::uint64_t, 1 > > Utilities::inverse_Hilbert_space_filling_curve< 1, double > (const std::vector< Point< 1, double >> &, const int)
 
template std::vector< std::array< std::uint64_t, 1 > > Utilities::inverse_Hilbert_space_filling_curve< 1 > (const std::vector< std::array< std::uint64_t, 1 >> &, const int)
 
template std::vector< std::array< std::uint64_t, 2 > > Utilities::inverse_Hilbert_space_filling_curve< 2, double > (const std::vector< Point< 2, double >> &, const int)
 
template std::vector< std::array< std::uint64_t, 2 > > Utilities::inverse_Hilbert_space_filling_curve< 2 > (const std::vector< std::array< std::uint64_t, 2 >> &, const int)
 
template std::vector< std::array< std::uint64_t, 3 > > Utilities::inverse_Hilbert_space_filling_curve< 3, double > (const std::vector< Point< 3, double >> &, const int)
 
template std::vector< std::array< std::uint64_t, 3 > > Utilities::inverse_Hilbert_space_filling_curve< 3 > (const std::vector< std::array< std::uint64_t, 3 >> &, const int)
 
template std::uint64_t Utilities::pack_integers< 1 > (const std::array< std::uint64_t, 1 > &, const int)
 
template std::uint64_t Utilities::pack_integers< 2 > (const std::array< std::uint64_t, 2 > &, const int)
 
template std::uint64_t Utilities::pack_integers< 3 > (const std::array< std::uint64_t, 3 > &, const int)
 

Macro Definition Documentation

◆ BOOST_BIND_GLOBAL_PLACEHOLDERS

#define BOOST_BIND_GLOBAL_PLACEHOLDERS

Definition at line 32 of file utilities.cc.