Go to the documentation of this file.
89 os <<
" " << x.
name() <<
" {\n";
108 os <<
" " << x[i].idx <<
" " << x[i].fd[0] <<
" " << x[i].fd[1];
125 os <<
" CIA tag; Spectral range [cm-1]; Temp range [K]; # of sets\n";
127 for (
Index j = 0; j < cia_data[i].DatasetCount(); j++)
129 Vector temp_grid = cia_data[i].TemperatureGrid(j);
130 Vector freq_grid = cia_data[i].FrequencyGrid(j);
132 os << setprecision(2) << std::fixed <<
" "
133 << cia_data[i].MoleculeName(0) <<
"-CIA-" << cia_data[i].MoleculeName(1)
138 <<
"; " << temp_grid[0] <<
" - " << temp_grid[temp_grid.
nelem()-1]
139 <<
"; " << temp_grid.
nelem()
176 Print( x.
np, level, verbosity );
192 Print( x.
r, level, verbosity );
231 os <<
"Ppath element " << i <<
": ";
233 Print( x[i], level, verbosity );
250 SWITCH_OUTPUT(level,
"Timer error: Nothing to output. Use timerStart/timerStop first.");
255 os.setf (ios::showpoint | ios::fixed);
257 static long clktck = 0;
260 if ((clktck = sysconf (_SC_CLK_TCK)) < 0)
261 throw runtime_error (
"Timer error: Unable to determine CPU clock ticks");
263 os <<
" * CPU time total: " << setprecision (2)
264 << (
Numeric)((timer.cputime_end.tms_stime - timer.cputime_start.tms_stime)
265 + (timer.cputime_end.tms_utime - timer.cputime_start.tms_utime))
268 os <<
" user: " << setprecision (2)
269 << (
Numeric)(timer.cputime_end.tms_utime - timer.cputime_start.tms_utime)
272 os <<
" system: " << setprecision (2)
273 << (
Numeric)(timer.cputime_end.tms_stime - timer.cputime_end.tms_stime)
276 os <<
"\n real: " << setprecision (2)
277 << (
Numeric)(timer.realtime_end - timer.realtime_start) / (
Numeric)clktck;
279 os <<
" " << setprecision (2)
280 << (
Numeric)((timer.cputime_end.tms_stime - timer.cputime_start.tms_stime)
281 + (timer.cputime_end.tms_utime - timer.cputime_start.tms_utime))
282 / (
Numeric)(timer.realtime_end - timer.realtime_start) * 100.
294 SWITCH_OUTPUT (level,
"Timer error: ARTS was compiled without timer support");
303 const Index& only_allocated,
310 os <<
" Allocated workspace variables: \n";
312 os <<
" Workspace variables: \n";
350 out = in1 + in2 + in3 + in4 + in5 + in6 + in7 + in8 + in9 + in10;
361 if ((timer.realtime_start = times (&timer.cputime_start)) == (clock_t)-1)
362 throw runtime_error (
"Timer error: Unable to get current CPU time");
373 throw runtime_error (
"Timer error: ARTS was compiled without POSIX support, thus timer\nfunctions are not available.");
386 throw runtime_error(
"Timer error: Unable to stop timer that's not running.");
388 if ((timer.realtime_end = times (&(timer.cputime_end))) == (clock_t)-1)
389 throw runtime_error (
"Timer error: Unable to get current CPU time");
400 throw runtime_error (
"Timer error: ARTS was compiled without POSIX support, thus timer\nfunctions are not available.");
408 throw runtime_error(msg);
417 out1 <<
" Forced exit.\n";
445 cout <<
"Result of 1:th integration: " << h*ys << endl;
449 cout <<
"Result of 2:nd integration: " << h*ys << endl;
450 cout <<
"Expected result : " << (2.0+2.0/3.0) << endl;
void timerStart(Timer &, const Verbosity &)
WORKSPACE METHOD: timerStart.
void Exit(const Verbosity &verbosity)
WORKSPACE METHOD: Exit.
void Print(Workspace &ws, const Agenda &x, const Index &level, const Verbosity &verbosity)
void verbositySetFile(Verbosity &verbosity, const Index &level)
WORKSPACE METHOD: verbositySetFile.
void sensor_integration_vector2(VectorView h, ConstVectorView f, ConstVectorView x_f, ConstVectorView x_g_in)
sensor_integration_vector
void sensor_integration_vector(VectorView h, ConstVectorView f, ConstVectorView x_f_in, ConstVectorView x_g_in)
sensor_integration_vector
void StringCompose(String &out, const String &in1, const String &in2, const String &in3, const String &in4, const String &in5, const String &in6, const String &in7, const String &in8, const String &in9, const String &in10, const Verbosity &)
WORKSPACE METHOD: StringCompose.
#define SWITCH_OUTPUT(x, y)
void print(ostream &os, const String &indent) const
Print an agenda.
This file contains the definition of Array.
The structure to describe a propagation path and releated quantities.
void verbositySetAgenda(Verbosity &verbosity, const Index &level)
WORKSPACE METHOD: verbositySetAgenda.
void Test(const Verbosity &verbosity)
WORKSPACE METHOD: Test.
Sensor modelling functions.
Declarations having to do with the four output streams.
Verbosity verbosity_at_launch
The implementation for String, the ARTS string class.
void verbositySetScreen(Verbosity &verbosity, const Index &level)
WORKSPACE METHOD: verbositySetScreen.
void timerStop(const Timer &, const Verbosity &)
Index nelem() const
Returns the number of elements.
String name() const
Agenda name.
const Numeric SPEED_OF_LIGHT
NUMERIC Numeric
The type to use for all floating point numbers.
void set_agenda_verbosity(Index v)
Index get_agenda_verbosity() const
void verbositySet(Verbosity &verbosity, const Index &agenda, const Index &screen, const Index &file)
WORKSPACE METHOD: verbositySet.
The class MakeVector is a special kind of Vector that can be initialized explicitly from one or more ...
void INCLUDE(const Verbosity &)
WORKSPACE METHOD: INCLUDE.
void PrintWsvName(OutputStream &outstream, Index i)
Print WSV name to output stream.
void VectorLinSpace(Vector &x, const Numeric &start, const Numeric &stop, const Numeric &step, const Verbosity &verbosity)
WORKSPACE METHOD: VectorLinSpace.
void PrintWorkspace(Workspace &ws, const Index &only_allocated, const Index &level, const Verbosity &verbosity)
void Error(const String &msg, const Verbosity &verbosity)
WORKSPACE METHOD: Error.
This file contains the declaration and partly the implementation of the workspace class.
void set_file_verbosity(Index v)
Index get_screen_verbosity() const
bool is_initialized(Index i)
Checks existence of the given WSV.
Index get_file_verbosity() const
INDEX Index
The type to use for all integer numbers and indices.
void verbosityInit(Verbosity &verbosity)
WORKSPACE METHOD: verbosityInit.
void arts_exit(int status)
This is the exit function of ARTS.
void set_screen_verbosity(Index v)
Index nelem() const
Number of elements.
Auxiliary header stuff related to workspace variable groups.
This file contains the definition of String, the ARTS string class.
The global header file for ARTS.
Template functions for general supergeneric ws methods.