Skip to main content

Classes

Functions

Detailed Description

Function Documentation

currentScriptPath()

Determines the current directory of the the currently running script file. The method uses the global interpreter() function to access the Lua state. Returns The current directory of the script being processed at the moment. Exceptions

loadMacros() [1/2]

Load macros stored at the MacroManager. Loaded macros are callable functions in SoS script context. Loaded macros are stored in the sos_macros Lua table. Example call: sos_macros.getNodeMin(sos.database(), “1”, ‘TEMP’, ‘min[TEMP]’) Parameters

loadMacros() [2/2]

Load macros stored at the MacroManager of the current sos.database(). Loaded macros are callable functions in SoS script context. Loaded macros are stored in the sos_macros Lua table. Example call: sos_macros.getNodeMin(sos.database(), “1”, ‘TEMP’, ‘min[TEMP]’)

log() [1/2]

Issues an info log message. Parameters

log() [2/2]

Issues a log message to the SoS logger. Parameters Exceptions

setLogLevel()

sets the verbose level of the logger Parameters

setMaxNumThreads()

Sets the maximum number of threads used in OpenMP. Parameters
Does not have any action if OpenMP is disabled.

useCommandLogFile()

Controls the usage of SoS’s command log file. Parameters Returns The previous state
The command log file will be updated each time the lua interpreter is about to start the execution of a new line of code. This means the physical command log file will be rewritten for EACH LINE! In consequence, at least if there is any change that your loop might get huge for some input, you’re strongly advised to switch command log file support off immediately before entering the loop and to reanable it afterwards