def set_log_cout_level(log_level): """ Undocumented """ core.set_config_value("LOG_COUT_LEVEL", log_level)
def set_end_time(end_time): """ Sets the end-time of the simulation. This is a required parameter. Argument must be an integer. """ core.set_config_value("END_TIME", str(end_time))
def set_num_proc(np): """ Sets the number of parallel simulation processes. The default is the number of MPI processes. Argument must be an integer """ core.set_config_value("NUMBER_LPS", str(np))
def set_log_file(lf_name): """ Sets the prefix for the log file name. The suffix will be of the form AA, AB, AC etc depending on how many simulation processes there are. Argument must be a string """ core.set_config_value("LOG_FILE", lf_name)
def set_log_level(log_level): """ Sets the verbosity of the debug messages in the simulation. In increasing order of verbosity, these are: "info","debug1","debug2","debug3" Argument must be a string """ core.set_config_value("LOG_LEVEL", log_level)
def set_output_file(of_name): """ Sets the prefix of the output file name. The suffix will be of the form AA, AB, AC etc depending on how many simulation processes there are. Argument must be a string """ core.set_config_value("OUTPUT_FILE", of_name)
def set_min_delay(min_delay): """ Sets the value for Look-Ahead in a parallel simulation. Determines how often processes have to synchronize This is a required parameter. Argument must be an integer. """ core.set_config_value("MINDELAY", str(min_delay))
def set_defaults(prog_name): """ Sets the default values for the following simulation parameters. - Numnber of simulation processes = number of MPI processes - Log level = "info" - Log cout level = "warn" - Log file name prefix = <prog_name>.log - Output file name prefix = <prog_name>.out Argument must be a string. """ core.set_config_value("NUMBER_LPS", str(0)) core.set_config_value("LOG_LEVEL", "info") core.set_config_value("LOG_COUT_LEVEL", "warn") core.set_config_value("OUTPUT_FILE", prog_name + ".out") core.set_config_value("LOG_FILE", prog_name + ".log")