RE: Simulation gets stuck in December - Forum - Delft3D Flexible Mesh
Forum
- Home
- 3. Archive
- General
- 3. Compilation and running on Linux
- RE: Simulation gets stuck in December
RE: Simulation gets stuck in December
Rusty Holleman, modified 8 Years ago.
Simulation gets stuck in December
Youngling Posts: 2 Join Date: 8/3/15 Recent Posts
We have been running annual simulations roughly August-to-August, and with a new model setup the runs get stuck around Dec 1. I believe this is due to this snippet of unstruc.F90, line 12184 in unstruc.F90, rev50237, part of inctime_split. As far as I can tell, newer versions of unstruc.F90 have the same code here.
Switching the order of the 'SWAP' lines allows the runs to continue, at least in our limited testing so far. Please let me know if I'm missing something. If this is not the correct fix, then perhaps we can post more details of our simulations for some help on figuring out the source of them getting stuck.
Best,
Rusty
1 | |
2 | case ('M') |
3 | imonth = imonth + ti_split |
4 | if (imonth > 12) then |
5 | imonth = mod(imonth, 12) ; SWAP |
6 | iyear = iyear + floor(real(imonth)/12.0) ; SWAP |
7 | end if |
Switching the order of the 'SWAP' lines allows the runs to continue, at least in our limited testing so far. Please let me know if I'm missing something. If this is not the correct fix, then perhaps we can post more details of our simulations for some help on figuring out the source of them getting stuck.
Best,
Rusty
Jing Zhao, modified 8 Years ago.
RE: Simulation gets stuck in December
Padawan Posts: 29 Join Date: 7/12/16 Recent Posts
Dear Rusty,
Thank you very much for reporting this bug. It is correct to exchange the two lines as you mentioned. We have also corrected the bug in codes of DFlow FM.
With kind regards,
Jing Zhao
Deltares
Thank you very much for reporting this bug. It is correct to exchange the two lines as you mentioned. We have also corrected the bug in codes of DFlow FM.
With kind regards,
Jing Zhao
Deltares