First Implementation Pseudo-code:

1. Read the command line parameters, which include the model file name, the configuration file name, the print interval, the end time, and the random seed.
2. Read the configuration file to determine the number of threads and which reactions are assigned to each thread.
3. Read the model file to determine the number of species, their initial populations, the number of reactions, their chemical equations, and their rate constants.
4. Start the threads.

EACH THREAD -
1. Build a dependency graph to determine how my thread’s reactions effect the propensity values of reactions assigned to other processors.
2. While not all threads are done

3. Merge the histories of the various threads to form the output file.

BACK HOME