hexed 0.3.0
 
Loading...
Searching...
No Matches
hexed::assert Namespace Reference

utilities for custom assertions More...

Classes

class  Exception
 
class  Numerical_exception
 represents a fatal problem in the numerics of the code (such as nonphysical values) More...
 
class  User_error
 represents an exception which clearly results from a mistake made by the user More...
 

Functions

template<typename except_t = std::runtime_error>
void throw_critical (const char *message)
 

Detailed Description

utilities for custom assertions

Function Documentation

◆ throw_critical()

template<typename except_t = std::runtime_error>
void hexed::assert::throw_critical ( const char * message)

throws a std::runtime_error with message message, wrapped in a #pragma omp critical if necessary. Used in HEXED_ASSERT