Jump to content
RockWare Support Forum
Sign in to follow this  

Maximum number of time steps (TOUGH2 EOS5 and TOUGHREACT)

Recommended Posts

I'm wondering why the maximum number of time steps for TOUGH2 EOS5 is actually 9999 with the interface Petrasim (window with the value of the log of the time step) ? TOUGH2 EOS5 STILL works after 9999 time steps but there is a warning message at the end that "Max Number of Time steps reached" and therefore no warning to know if it works correctly or not.

For those who have tested Petrasim TOUGHREACT, have you got the same warning ??


Share this post

Link to post
Share on other sites

Setting the maximum number of time steps to 9999 is a special flag in the builds of TOUGH2 supplied with PetraSim. If set to 9999, TOUGH will ignore the iteration limit and continue to iterate until either the problem converges, reaches the end time, or the user terminates the process.

The progress monitor window in PetraSim dynamically parses the TOUGH2 output file to look for progress information. Because this file is written with FORTRAN fixed format, once the iteration number reaches 10000, it overflows the 4 spaces allocated for writing. It looks like the progress window does not expect this and stops updating the progress information. However, the underlying simulation is still running. You can ignore the max iteration message when the simulation ends.

We have confirmed this as a bug in the current release. In the current version, the dynamic progress update will stop, and an incorrect warning will be displayed, but the simulation will continue.

Best Regards,


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this