I'm trying to integrate ROSS simulations into a workflow, so a set of processes should be able to call a ROSS-based simulation (CODES model-net-mpi-replay) multiple time. This means calling tw_init/tw_end multiple times in a row. I ran into problems and realized ROSS uses many global/static variables (most globals in ross-global.c, but there are also static variables in other files that have a default value at the beginning of a run). While the first run of ROSS works fine, the following don't because some of the variables need to be reinitialized.
Would it be possible to add some kind of tw_reset() function that puts ROSS in the same state it was before the first tw_init call?
I'm trying to integrate ROSS simulations into a workflow, so a set of processes should be able to call a ROSS-based simulation (CODES model-net-mpi-replay) multiple time. This means calling tw_init/tw_end multiple times in a row. I ran into problems and realized ROSS uses many global/static variables (most globals in ross-global.c, but there are also static variables in other files that have a default value at the beginning of a run). While the first run of ROSS works fine, the following don't because some of the variables need to be reinitialized.
Would it be possible to add some kind of tw_reset() function that puts ROSS in the same state it was before the first tw_init call?