26.3 Accessor Functions and Timestep Data

Other units within FLASH may make calls to write information, or stamp, the logfile. For example, the Driver unit calls the API routine Logfile_stamp after each timestep. The Grid unit calls Logfile_stamp whenever refinement occurs in an adaptive grid simulation. If there is an error that is caught in the code the API routine Driver_abortFlash stamps the logfile before aborting the code. Any unit can stamp the logfile with one of two routines Logfile_stamp which includes a data and time stamp along with a logfile message, or Logfile_stampMessage which simply writes a string to the logfile.

The routine Logfile_stamp is overloaded so the user must use the interface file Logfile_interface.F90 in the calling routine. The next snippit shows logfile output during the evolution loop of a FLASH run.

 

==============================================================================
 [ 04-19-2006  16:40.43 ] [Simulation_init]: initializing Sod problem
 [GRID amr_refine_derefine]             initiating refinement
 [GRID amr_refine_derefine] min blks 0    max blks 1    tot blks 1
 [GRID amr_refine_derefine] min leaf blks 0    max leaf blks 1    tot leaf blks 1
 [GRID amr_refine_derefine]             refinement complete
 [ 04-19-2006  16:40.43 ] [GRID gr_expandDomain]: create level=2
 ...
 [GRID amr_refine_derefine]             initiating refinement
 [GRID amr_refine_derefine] min blks 250    max blks 251    tot blks 501
 [GRID amr_refine_derefine] min leaf blks 188    max leaf blks 188    tot leaf blks 376
 [GRID amr_refine_derefine]             refinement complete
 [ 04-19-2006  16:40.44 ] [GRID gr_expandDomain]: create level=7
 [ 04-19-2006  16:40.44 ] [GRID gr_expandDomain]: create level=7
 [ 04-19-2006  16:40.44 ] [GRID gr_expandDomain]: create level=7
 [ 04-19-2006  16:40.44 ] [IO_writeCheckpoint] open: type=checkpoint name=sod_hdf5_chk_0000
 [ 04-19-2006  16:40.44 ] [io_writeData]: wrote     501          blocks
 [ 04-19-2006  16:40.44 ] [IO_writeCheckpoint] close: type=checkpoint name=sod_hdf5_chk_0000
 [ 04-19-2006  16:40.44 ] [IO writePlotfile] open: type=plotfile name=sod_hdf5_plt_cnt_0000
 [ 04-19-2006  16:40.44 ] [io_writeData]: wrote     501          blocks
 [ 04-19-2006  16:40.44 ] [IO_writePlotfile] close: type=plotfile name=sod_hdf5_plt_cnt_0000
 [ 04-19-2006  16:40.44 ] [Driver_evolveFlash]: Entering evolution loop
 [ 04-19-2006  16:40.44 ] step: n=1 t=0.000000E+00 dt=1.000000E-10
 ...
 [ 04-19-2006  16:41.06 ] [io_writeData]: wrote     501          blocks
 [ 04-19-2006  16:41.06 ] [IO_writePlotfile] close: type=plotfile name=sod_hdf5_plt_cnt_0002
 [ 04-19-2006  16:41.06 ] [Driver_evolveFlash]: Exiting evolution loop
 ==============================================================================