The following command-line toggles are supported
--warn toggles the warning mode--check toggles calls to module check functions--debug toggles debug messages--debugger enables the debugger and turns on debug messages--dumpall toggles a complete model dump when the simulation exits--quiet toggles all messages except error and fatal messages--profile toggles performance profiling--compile toggles compile-only run mode (model is loaded and saved, but not run)The following command-line processes can be called
--license prints the software license--dsttest performs a daylight saving time definitions in tzinfo.txt --unitstest performs a test of the units in unitfile.txt --randtest performs a test of the random number generators--scheduletest performs a test of the built-in schedules--loadshapetest performs a test of the built-in loadshapes--endusetest performs a test of the built-in enduses--testall file performs module selftests of modules those listed in file --test run the internal core self-test routines--define define a global variable--libinfo module prints information about the module --xsd module[:object] prints the xsd of a module or object--xsl creates the xsl for this version of gridlab-d--kml=file output kml (Google Earth) file of modelThe following system options may be changed
--threadcount n changes the number of thread to use during simulation (default is 0, meaning as many as useful)--output file saves dump output to file (default is gridlabd.glm)--environment app start the app as the processing environment (default is batch)--xmlencoding num sets the XML encoding (8, 16, or 32)--xmlstrict toggles XML to be strict--relax allows implicit variable definition when assignments madeThe following are only supported on Linux systems
--pidfile[=filename] creates a process id file while GridLAB-D is running (default is gridlabd.pid)--redirect stream[:file] redirects output stream to file--server runs in server mode (pidfile and redirects all output)
Functions | |
| STATUS | cmdarg_load (int argc, char *argv[]) |
| Load and process the command-line arguments. | |
| STATUS cmdarg_load | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Load and process the command-line arguments.
gridlabd --warn model1 --warn model2
model1 with warnings on, and model2 with warnings off. | argc |
the number of arguments in argv |
| argv | a list pointers to the argument string |
Definition at line 222 of file cmdarg.c.
References class_get_class_from_classname(), class_get_first_class(), class_get_property_typename(), FMT_INT64, global_command_line, global_find(), global_getnext(), global_getvar(), global_setvar(), legal_license(), legal_notice(), loadall(), module_load(), output_both_stdout(), output_debug(), output_error(), output_fatal(), output_message(), output_test(), output_warning(), output_xsd(), PF_DEPRECATED, PT_enumeration, PT_set, random_test(), throw_exception(), timestamp_test(), and unit_test().
Referenced by main().