ARTS
2.4.0(git:4fb77825)
|
The global header file for ARTS. More...
#include <cstddef>
#include <cstdlib>
#include "debug.h"
#include "mystring.h"
#include "config.h"
#include <cassert>
Go to the source code of this file.
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_species_map () |
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... | |
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 add_basedir(), cleanup_output_file(), out_basename, and report_file.
Referenced by arts_exit_with_error_message(), c_errmsg(), Exit(), interp_poly(), main(), operator<<(), AgRecord::operator=(), MdRecord::operator=(), option_describe(), option_input(), option_methods(), option_workspacevariables(), polite_goodby(), set_reporting_level(), and VectorInsertGridPoints().
Print error message and exit.
This function is intended for use in catch blocks.
m | Error message. |
m | ArtsOut stream to use. |
Definition at line 64 of file arts.cc.
References add_basedir(), arts_exit(), Verbosity::get_file_verbosity(), Verbosity::get_screen_verbosity(), ArtsOut::get_verbosity(), and out_basename.
void define_species_data | ( | ) |
Definition at line 158 of file species_data.cc.
References define_basic_species_data(), and define_partition_species_data().
Referenced by ARTS::init(), InteractiveWorkspace::initialize(), main(), test_ecs20(), test_hitran2017(), test_mpm20(), and test_zeeman().
void define_species_map | ( | ) |
Define the species data map.
Definition at line 1069 of file species_data.cc.
References global_data::species_data, and global_data::SpeciesMap.
Referenced by ARTS::init(), InteractiveWorkspace::initialize(), main(), test_ecs20(), test_hitran2017(), test_mpm20(), and test_zeeman().
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 77 of file groups.cc.
References define_valid_keyword_groups(), define_wsv_group_map(), and global_data::wsv_group_names.
Referenced by ARTS::init(), InteractiveWorkspace::initialize(), and main().
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 5771 of file workspace.cc.
Get index of WSV.
Returns the index the Workspace of the given WSV.
[in] | name | WSV name |
Definition at line 5751 of file workspace.cc.
References Zeeman::end(), and 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 178 of file groups.cc.
References Array< base >::nelem(), and valid_keyword_groups.