matplotlib

This Page

simx.config module

Provides wrapper functions for setting configuration parameters in simx

simx.config.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.

simx.config.set_end_time(end_time)

Sets the end-time of the simulation. This is a required parameter. Argument must be an integer.

simx.config.set_log_cout_level(log_level)

Undocumented

simx.config.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

simx.config.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

simx.config.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.

simx.config.set_num_proc(np)

Sets the number of parallel simulation processes. The default is the number of MPI processes. Argument must be an integer

simx.config.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