Writing the simulator's random seed or initial log into a file
Posted: Fri Apr 24, 2015 9:00 pm
Hi, when the simulator starts, it outputs something like
I would like to get the value of that random seed and save it a file from my loop function, when it initialises. Or at least get all the info and save it. This is so that if I find a bug in a specific simulation run, I just re-run that particular case.
I couldn't find a way to do it, is there one? I have the output stream setup, I just need to fill in the following line:
Thanks!
Code: Select all
[INFO] Not using threads
[INFO] Using random seed = 263127
[INFO] Using simulation clock tick = 0.1
[INFO] Total experiment length in clock ticks = unlimited
[INFO] The physics engine "dyn2d" will perform 10 iterations per tick (dt = 0.01 sec)
I couldn't find a way to do it, is there one? I have the output stream setup, I just need to fill in the following line:
Code: Select all
outputFileGlobal << ???