problems with swiggle use in oscillating temperature

I would like to impose an oscillating temperature as follows

fix mynve all nve
variable mytemp equal swiggle(2.0,0.1,10.0)
fix myrescale all temp/rescale 1 v_mytemp v_mytemp 0.0 1.0
run 1000

but I always get a zero temperature. What is my mistake?
Thanks for any help


Fix temp/rescale does not allow a variable for the target temperature.
(the doc page does not say that it does). You can try fix langevin;
it does allow for a variable.


Just added a variable option to fix temp/rescale
and fix temp/berendsen. Your commands should now
work as expected. See the 28May12 patch.