sseyler / HERMESHD

HERMESHD is a discontinuous Galerkin 3D fluctuating hydrodynamics code for nanoscale fluid simulation
Other
10 stars 11 forks source link

Subroutine `report_wall_time` produces erroneous output for large numbers #3

Open sseyler opened 7 years ago

sseyler commented 7 years ago

In cases where the wall time exceeds a certain value (probably when there are >= 5 digits to the left of the decimal), the printed time will have a negative value and erroneous magnitude.

Example section of code output:

 nout =          201
    t =    10000.05              dt=   8.9384301E-04
   >> Iteration time   143.0762     seconds
   Data written to:
 data/ise_160x160_i2_q4_b20_v1/perseus_p0000_t0201.vtr
   >> Output time  7.4218750E-02 seconds

  Wall time:   -185890.9     sec

The actual wall time was 28,897 seconds and was calculated using the queueing system.

Possible solutions include: