These are chat archives for scemama/irpf90

28th
Sep 2015
Maximilien Levesque
@maxlevesque
Sep 28 2015 13:08
Hi there, how to force a provider to recalculate a value?
It seems to me that TOUCH toto tells to update everything that is related to toto, but not toto itself. How can I force toto to be recalculated?
For instance, I would like to force variable mmax to be calculated at the place where I have my UPDATE here:
program foo
implicit none
print*,mmax
UPDATE mmax
print*,mmax
Maximilien Levesque
@maxlevesque
Sep 28 2015 13:22
@scemama
Thomas Applencourt
@TApplencourt
Sep 28 2015 14:15

I cannot test right now but i guess a

program foo
implicit none
print*,mmax
mmax = 100
TOUCH mmax
print*,mmax
end foo

should work

Or you can try to replace TOUCH by SOFT_TOUCH.
Maybe you can find more info where https://scemama.gitbooks.io/irpf90/content/IRPF90/Touch.html

I all of this failed, you can create a dummy provider who just print mnax and use it instead.