Setting Memory by Environment Variables


Click here for full thread
Clicked A Few Times
I would like to set the available memory of a job through the submission script, rather than inside the input file; I noted that it seems to be possible from the code input/memory._def.F


However, when I set the variable MEM_TOTAL, MEM_HEAP etc, they are all ignored. Does anyone has some idea?

e.g.
export MEM_TOTAL=137438953472 #(1TB)

In the output

          Memory information
------------------

heap = 13107200 doubles = 100.0 Mbytes
stack = 13107197 doubles = 100.0 Mbytes
global = 26214400 doubles = 200.0 Mbytes (distinct from heap & stack)
total = 52428797 doubles = 400.0 Mbytes
verify = yes
hardfail = no

Thanks!
~Dominic