ARTS
2.0.49
|
This file contains global functions. More...
Go to the source code of this file.
Functions | |
void | arts_exit (int status) |
This is the exit function of ARTS. More... | |
void | arts_exit_with_error_message (const String &m, ArtsOut &out) |
Print error message and exit. More... | |
void | exit_or_rethrow (const String &m, ArtsOut &out) |
Exit ARTS or re-throw error. More... | |
void arts_exit | ( | int | status | ) |
This is the exit function of ARTS.
Whenever arts has to be terminated at some point, call this function.
You can call without any parameters, since the exit status then defaults to EXIT_FAILURE.
status | Exit code. EXIT_FAILURE if omitted. |
Definition at line 42 of file arts.cc.
References cleanup_output_file(), out_basename, and report_file.
Referenced by arts_exit_with_error_message(), Error(), Exit(), get_parameters(), give_up(), interp_poly(), main(), operator<<(), AgRecord::operator=(), MdRecord::operator=(), option_describe(), option_input(), option_methods(), option_workspacevariables(), ArtsParser::parse_main(), polite_goodby(), LineRecord::ReadFromHitranStream(), LineRecord::ReadFromMytran2Stream(), set_reporting_level(), VectorInsertGridPoints(), and ybatchCalc().
Exit ARTS or re-throw error.
The behavior of this function depends on whether we are compiling with OpenMP or without. With OpenMP, the program is terminated with the error message. Without OpenMP, the runtime_error is re-thrown in order to be handled higher up.
m | Error message. |
Definition at line 98 of file arts.cc.
Referenced by abs_fieldCalc(), batch_atm_fields_compactFromArrayOfMatrix(), batch_atm_fields_compactFromArrayOfMatrixChevalAll(), iyb_calc(), xsec_species(), and ybatchCalc().