I think i have a very small problem but i did not find the way to fix it!
I would like to save my results in a file which will be indexed by the number of the simulation: "ii" in the following piece of code, so i put "ii" in parameter of plotvsd(), but after (in the plotvsd() function) i don't know how to print in a file like in C langage:
fprintf(filename, "vsd_file-%s", $1).
Code: Select all
proc myRun() {
preparemyrun()
for ii = $1, $2 {
setFreq(ii)
run()
postprocess()
[b]plotvsd(ii)[/b]
}
}
Code: Select all
proc plotvsd() {
f1.aopen("vsd_file") [b]//what have i to add here to write in a file indexed by the "ii" parameter???[/b]
f1.printf("%3.2f\n", svsum_moy.x[0])
f1.close()
}
Thanks,
Sandrine.