Beispiel #1
0
def set_log_cout_level(log_level):
    """
    
    Undocumented

    """
    core.set_config_value("LOG_COUT_LEVEL", log_level)
Beispiel #2
0
def set_log_cout_level(log_level):

    """
    
    Undocumented

    """
    core.set_config_value("LOG_COUT_LEVEL", log_level)
Beispiel #3
0
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))
Beispiel #4
0
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))
Beispiel #5
0
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))
Beispiel #6
0
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))
Beispiel #7
0
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)
Beispiel #8
0
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)
Beispiel #9
0
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)
Beispiel #10
0
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))
Beispiel #11
0
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)
Beispiel #12
0
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)
Beispiel #13
0
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))
Beispiel #14
0
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)
Beispiel #15
0
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")
Beispiel #16
0
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")