ARTS
2.0.49
|
The global header file for ARTS. More...
#include <cstddef>
#include <cstdlib>
#include "matpack.h"
#include "mystring.h"
#include "config_global.h"
#include <cassert>
Go to the source code of this file.
Macros | |
#define | DEBUG_ONLY(...) __VA_ARGS__ |
Functions | |
void | define_wsv_group_names () |
Define the array of workspace variable group names. More... | |
Index | get_wsv_id (const String &name) |
Get index of WSV. More... | |
Index | get_wsv_id (const char *name) |
Get index of WSV. More... | |
bool | is_valid_keyword_group (const Index name) |
void | define_species_data () |
void | define_lineshape_data () |
void | define_lineshape_norm_data () |
void | arts_exit (int status=EXIT_FAILURE) |
This is the exit function of ARTS. More... | |
void | arts_exit_with_error_message (const String &m, ArtsOut &os) |
Print error message and exit. More... | |
void | exit_or_rethrow (const String &m, ArtsOut &out) |
Exit ARTS or re-throw error. More... | |
The global header file for ARTS.
This file is included directly or indirectly by each and every ARTS source file. It must therefor not contain stuff that should not always be present.
Note that you do not have to include this file explicitly in many cases, since it is included directly or indirectly by most ARTS header files.
Definition in file arts.h.
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().
void define_lineshape_data | ( | ) |
Definition at line 2092 of file lineshapes.cc.
References lineshape_CO2_drayson(), lineshape_CO2_lorentz(), lineshape_data, lineshape_doppler(), lineshape_lorentz(), lineshape_no_shape(), lineshape_rosenkranz_voigt_drayson(), lineshape_rosenkranz_voigt_kuntz6(), lineshape_voigt_drayson(), lineshape_voigt_kuntz3(), lineshape_voigt_kuntz4(), and lineshape_voigt_kuntz6().
Referenced by main().
void define_lineshape_norm_data | ( | ) |
Definition at line 2189 of file lineshapes.cc.
References lineshape_norm_data, lineshape_norm_no_norm(), lineshape_norm_quadratic(), and lineshape_norm_VVH().
Referenced by main().
void define_species_data | ( | ) |
Definition at line 136 of file species_data.cc.
References define_basic_species_data(), and define_partition_species_data().
Referenced by main().
void define_wsv_group_names | ( | ) |
Define the array of workspace variable group names.
This defines the global variable wsv_group_names. It is used in two different programs:
Definition at line 80 of file groups.cc.
References define_valid_keyword_groups(), define_wsv_group_map(), and wsv_group_names.
Referenced by main().
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().
Index get_wsv_id | ( | const char * | name | ) |
Get index of WSV.
Returns the index the Workspace of the given WSV.
Convenience function which can be called from within the debugger because it takes a plain char pointer instead of a String object as input.
[in] | name | WSV name |
Definition at line 4577 of file workspace.cc.
References get_wsv_id().
Get index of WSV.
Returns the index the Workspace of the given WSV.
[in] | name | WSV name |
Definition at line 4555 of file workspace.cc.
References Workspace::WsvMap.
Referenced by AgRecord::AgRecord(), Arts2(), Agenda::execute(), get_wsv_id(), main(), and MdRecord::MdRecord().
bool is_valid_keyword_group | ( | const Index | name | ) |
Definition at line 144 of file groups.cc.
References Array< base >::nelem(), and valid_keyword_groups.