You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue was reported by Darko Perovic at CERN. The attached case crashes on restart with latest source, Linux OpenMP version. I'm testing now with other versions.
I figured out the problem. FDS has a "feature" where it guarantees that all devices, clocks, timers, etc, that are given a specified DT_XXX for which T_END is not divisible are called one last time at the last time step. In this case, DT_RESTART=15 and T_END=29, which means that FDS wrote a restart file at 15 and 29 s. Upon restart, the initial T was the same as T_END, which caused a seg fault. I have to decide whether to keep this "feature" of DT_XXX and if I do, make DT_RESTART behave differently. I think we want to write a restart file only when the user wants it.
I agree that for restart files it doesn't make sense to write the final file at T_END unless DT_RESTART evenly divides T_END (this way we write a file for the case where a user is running FDS just to get a restart and the end).
Activity
mcgratta commentedon Jun 14, 2022
This appears to be related to the output "clocks". I have identified the problem line.
mcgratta commentedon Jun 15, 2022
I figured out the problem. FDS has a "feature" where it guarantees that all devices, clocks, timers, etc, that are given a specified DT_XXX for which T_END is not divisible are called one last time at the last time step. In this case, DT_RESTART=15 and T_END=29, which means that FDS wrote a restart file at 15 and 29 s. Upon restart, the initial T was the same as T_END, which caused a seg fault. I have to decide whether to keep this "feature" of DT_XXX and if I do, make DT_RESTART behave differently. I think we want to write a restart file only when the user wants it.
drjfloyd commentedon Jun 15, 2022
I agree that for restart files it doesn't make sense to write the final file at T_END unless DT_RESTART evenly divides T_END (this way we write a file for the case where a user is running FDS just to get a restart and the end).
mcgratta commentedon Jun 15, 2022
I'll make an exception to the rule for restart and any other "clock" for which we don't want this to occur.
FDS Source: Issue firemodels#10677. Fix restart clock
Merge pull request #10686 from mcgratta/master
mcgratta commentedon Jun 15, 2022
I fixed the problem. FDS only dumps a RESTART file when the user wants it, and not also at the end of the run.