[FLASH-USERS] A possible problem in output.F90

From: Claudio Dalla Vecchia <claudio.dalla-vecchia@durham.ac.uk>
Date: Tue Oct 26 2004 - 06:24:38 CDT

Hi, I am running FLASH 2.4 on SUN and I spotted a problem in output.F90.
Around line 269,

tpnext = tinitial + tplot + int((time-tinitial)/tplot)*tplot
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^

the INT function could give an integer overflow if the argument is too
large. Notice that can happen in other places of the same routine.
Using the AINT function should help:

tpnext = tinitial + tplot + aint((time-tinitial)/tplot)*tplot

Cheers,
Claudio

-- 
***********************************************************************
Claudio Dalla Vecchia        e-mail: claudio.dalla-vecchia@durham.ac.uk
Institute for Computational     web: http://star-www.dur.ac.uk/~caius/
Cosmology, South Road           tel: +44 (0)191 33 43787     linux user
Durham DH1 3LE - UK             fax: +44 (0)191 33 43645        #275369
-----------------------------------------------------------------------
  "Politicians hide themeselves away / They only started the war
 Why should they go out to fight / They leave that all to the poor"
                                          ("War Pigs" - Black Sabbath)  
***********************************************************************
Received on Tue Oct 26 06:25:14 2004

This archive was generated by hypermail 2.1.8 : Thu Aug 31 2006 - 21:20:48 CDT