WarpX
Functions
WarpXUtilMsg Namespace Reference

Functions

void AlwaysAssert (bool is_expression_true, const std::string &msg)
 If is_expression_true is false, this function prints msg and calls amrex::abort() More...
 

Function Documentation

◆ AlwaysAssert()

void WarpXUtilMsg::AlwaysAssert ( bool  is_expression_true,
const std::string &  msg 
)

If is_expression_true is false, this function prints msg and calls amrex::abort()

Parameters
[in]is_expression_true
[in]msgthe string to be printed if is_expression_true is false (default value is "ERROR!")