The ROme OpTimistic Simulator  2.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
init.h File Reference

Initialization routines. More...

+ Include dependency graph for init.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _simulation_configuration
 Configuration of the execution of the simulator. More...
 

Typedefs

typedef struct _simulation_configuration simulation_configuration
 Configuration of the execution of the simulator.
 

Enumerations

enum  param_codes {
  PARAM_SCHEDULER = 0, PARAM_CKTRM_MODE, PARAM_LPS_DISTRIBUTION, PARAM_VERBOSE,
  PARAM_STATS, PARAM_STATE_SAVING, PARAM_SNAPSHOT
}
 

Functions

void SystemInit (int argc, char **argv)
 

Variables

const char *const param_to_text [][5]
 
simulation_configuration rootsim_config
 This global variable holds the configuration for the current simulation.
 

Detailed Description

Initialization routines.

This module implements the simulator initialization routines

This file is part of ROOT-Sim (ROme OpTimistic Simulator).

ROOT-Sim is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; only version 3 of the License applies.

ROOT-Sim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with ROOT-Sim; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Author
Francesco Quaglia
Andrea Piccione
Alessandro Pellegrini
Roberto Vitali

Definition in file init.h.

Enumeration Type Documentation

These are used to index the first level of the param_to_text array.

Definition at line 38 of file init.h.

Function Documentation

void SystemInit ( int  argc,
char **  argv 
)

This function initializes the simulator

Author
Francesco Quaglia
Alessandro Pellegrini
Parameters
argcnumber of parameters passed at command line
argvarray of parameters passed at command line

Definition at line 401 of file init.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

const char* const param_to_text[][5]

This array contains the stringified version of the parameter values ROOT-Sim accepts. You can index the first level of the array using the enum param_codes while for the second level you have to refer to the enumerations listed in relevant modules headers.

Definition at line 101 of file init.c.