[FLASH-BUGS] A Cosmology restart Bug

Josef Stöckl josef.stoeckl at uibk.ac.at
Mon Jun 2 08:41:08 CDT 2008


Hi again,

I've fixed another restart bug which had to do with Cosmology not being 
initialized before Cosmology_getRedshift was called in IO_init. This led 
to a division by zero that caused io_nextCheckpointZ to be infinity 
(with PGI 7.1), which in turn led to the IO_output routine being stuck 
in a while loop.

To quickly fix this, I have added a "call Cosmology_init(myPE, 
io_restart)" to IO_init.F90 around line 318 (before the 
Cosmology_getRedshift call). Additionally the calls to Cosmology_init 
could be omitted from Driver_initFlash, although a better solution would 
probably be to let the Cosmology module handly the io_*Z variables.

Best regards,
Josef


More information about the flash-bugs mailing list