deal.II version GIT relicensing-2167-g9622207b8f 2024-11-21 12:40:00+00:00
\(\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\}}\)
Loading...
Searching...
No Matches
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

namespace  Utilities
 
namespace  Utilities::System
 

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< double > Utilities::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 ()
 
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 ()
 

Macro Definition Documentation

◆ BOOST_BIND_GLOBAL_PLACEHOLDERS

#define BOOST_BIND_GLOBAL_PLACEHOLDERS

Definition at line 30 of file utilities.cc.