Output functions
[Runtime module API]


Detailed Description

Module may output messages to stdout, stderr, and the core test record file using the output functions.

See Output function for details on message format conventions.


Defines

#define gl_debug   (*callback->output_debug)
 Produces a debug message on stderr, but only when --debug is provided on the command line.
#define gl_error   (*callback->output_error)
 Produces an error message on stderr, but only when --quiet is not provided on the command line.
#define gl_output   (*callback->output_message)
 Produces a message on stdout.
#define gl_testmsg   (*callback->output_test)
 Produces a test message in the test record file, but only when --testfile is provided on the command line.
#define gl_verbose   (*callback->output_verbose)
#define gl_warning   (*callback->output_warning)
 Produces a warning message on stderr, but only when --warning is provided on the command line.


Define Documentation

#define gl_debug   (*callback->output_debug)

Produces a debug message on stderr, but only when --debug is provided on the command line.

See also:
output_debug(char *format, ...)

Definition at line 251 of file gridlabd.h.

Referenced by exec(), machine::init(), and house::sync().

#define gl_error   (*callback->output_error)

Produces an error message on stderr, but only when --quiet is not provided on the command line.

See also:
output_error(char *format, ...)

Definition at line 246 of file gridlabd.h.

Referenced by house::attach(), check(), machine::compile(), create_capacitor(), create_diesel_dg(), create_fuse(), create_line(), create_line_configuration(), create_line_spacing(), create_link(), create_load(), create_multizone(), create_node(), create_office(), create_overhead_line(), create_overhead_line_conductor(), create_powerflow_object(), create_regulator(), create_regulator_configuration(), create_relay(), create_transformer(), create_transformer_configuration(), create_triplex_line(), create_triplex_line_conductor(), create_triplex_line_configuration(), create_triplex_node(), create_underground_line(), create_underground_line_conductor(), waterheater::init(), refrigerator::init(), range::init(), plugload::init(), microwave::init(), lights::init(), house::init(), dishwasher::init(), clotheswasher::init(), machine::init(), comm::init(), generator::init(), multizone::init(), climate::init(), init_diesel_dg(), init_generator(), init_multizone(), init_office(), link_properties(), open_collector(), open_player(), open_recorder(), open_shaper(), plc_office(), sendx(), house::set_Eigen_values(), generator::sync(), sync_collector(), sync_diesel_dg(), sync_house(), house::sync_hvac_load(), sync_multizone(), sync_node(), sync_office(), sync_recorder(), sync_shaper(), sync_waterheater(), and house::thermostat().

#define gl_output   (*callback->output_message)

Produces a message on stdout.

See also:
output_message(char *format, ...)

Definition at line 236 of file gridlabd.h.

Referenced by check(), residential_test::clotheswasher_test(), residential_test::house_test(), import_cdf(), residential_test::lights_test(), and residential_test::waterheater_test().

#define gl_testmsg   (*callback->output_test)

Produces a test message in the test record file, but only when --testfile is provided on the command line.

See also:
output_testmsg(char *format, ...)

Definition at line 256 of file gridlabd.h.

Referenced by underground_line::init(), triplex_line::init(), relay::init(), regulator::init(), print_matrix(), and overhead_line::recalc().

#define gl_warning   (*callback->output_warning)

Produces a warning message on stderr, but only when --warning is provided on the command line.

See also:
output_warning(char *format, ...)

Definition at line 241 of file gridlabd.h.

Referenced by check(), house::init(), powerflow_object::init(), node::init(), office::init(), house::init_climate(), comm::sync(), sync_shaper(), and waterheater::wrong_model().


GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy