Hello Rooters
I’m running a named script, that produces a rather large matrix. When I open the task manager and look at the swap file, I realize that the used memory increases every time I run the script and doesn’t drop until I close Root. How can I free the memory after running the script without closing Root?
I have to use that because I wrote a small simulation which uses a lot of memory (more than my laptop possesses). Therefore I divided the simulation in several runs. But this of course only helps if the memory is freed after each run.
I’m looking for a command like this:
[code]void prog(){
Int_t nruns=100;
for (Int_t i=0;i<nruns;i++){
function();
//here I want the “free memory command”
}
}
function(){
//function that does some calculations
}[/code]
Thanks in advance for your help…
Cheers
Christian[/code]