5 #include <goofit/detail/Backtrace.h> 9 void abort(std::string file,
int line, std::string reason,
const PdfBase *pdf) {
13 << reason << std::endl;
17 std::cout <<
"Parameters of " << pdf->
getName() <<
" : \n";
23 std::cout <<
" " << v.getName() <<
" (" << v.getIndex() <<
") :\t" <<
host_params[v.getIndex()]
28 std::cout <<
"Parameters (" <<
totalParams <<
") :\n";
37 int size = backtrace(stackarray, 20);
39 backtrace_symbols_fd(stackarray, size, 2);
Thrown when a general error is encountered.
void abort(std::string file, int line, std::string reason, const PdfBase *pdf=nullptr)
Smart abort that includes the file name and location, and prints a stack trace if possible...
constexpr rang::style const bold
constexpr rang::fg const red
constexpr rang::style const reset
__host__ std::string getName() const
fptype host_params[maxParams]
virtual __host__ std::vector< Variable > getParameters() const