waLBerla 7.3
Loading...
Searching...
No Matches
Utility.h File Reference

Detailed Description

#include "Types.h"
#include "core/EndianIndependentSerialization.h"
#include "core/math/KahanSummation.h"
#include "core/math/Uint.h"
#include <limits>
#include <string>

Namespaces

namespace  walberla
 Storage for detected contacts which can be used to perform actions for all contacts, e.g.
namespace  walberla::blockforest

Functions

template<typename UINT>
std::string walberla::blockforest::uintToBitString (const UINT value)
 Returns a string that stores the bitwise representation of 'value' (must be an unsigned integer).
template<typename T>
workload_t walberla::blockforest::workloadSum (const T &array)
template<typename T>
memory_t walberla::blockforest::memorySum (const T &array)
memory_t walberla::blockforest::bytesToMiB (memory_t bytes)
template<typename UINT>
UINT walberla::blockforest::uintPow2 (const UINT exp)
 Returns the result of 2^exp.
template<typename UINT>
uint_t walberla::blockforest::uintMSBPosition (UINT value)
 Calculation of the position of the most significant bit of a variable of type UINT.