MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / print_backtrace_info

Method print_backtrace_info

Src/Base/AMReX_BLBackTrace.cpp:143–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void
144BLBackTrace::print_backtrace_info (const std::string& filename)
145{
146 if (FILE* p = fopen(filename.c_str(), "w"))
147 {
148 BLBackTrace::print_backtrace_info(p);
149 fclose(p);
150 }
151 else
152 {
153 amrex::Print() << "Warning @ BLBackTrace::print_backtrace_info: "
154 << filename << " is not a valid output file."
155 << '\n';
156 }
157}
158
159#ifdef AMREX_BACKTRACE_SUPPORTED
160namespace {

Callers

nothing calls this directly

Calls 7

PrintClass · 0.85
command_existsFunction · 0.85
run_commandFunction · 0.85
file_existsFunction · 0.70
emptyMethod · 0.45
clearMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected