Similar to what John suggested, you could script it up to run in different directories whose name have an index appended, and then within each directory keep all the files the same as before. Saves doing any modifications to the program.
Either a big single script that keeps increasing the index would work, or if you're using a queueing system just pass the index to the next script as an environment variable.
Regards,
Daniel.
On Tue, 15 Nov 2011, you wrote:
> I have a program for which the results are stochastic and I want to obtain many versions of the output to assess variability. Currently, everytime, I start a new run I need to change the filename and resave it. If there a simple way to modify the program so that I can have it run many times and record the output in each file seperately. i.e. create a loop so that the file name changes automatically after each run and then allow it do multiple runs automatically. I am getting tired of making a small change and then recompiling the program. it seems inefficient.
------------------------------------------------------------
Dr. Daniel Grimwood
iVEC Supercomputing Development and Applications Specialist
26 Dick Perry Avenue, Technology Park
Kensington WA 6151
Phone: +61 8 6436 8680
Fax: +61 8 6436 8555
Web: http://www.ivec.org/
IM: [log in to unmask]
Email: [log in to unmask]
|