<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Simulation gets stuck in December</title>
  <link rel="self" href="https://dlt-acc.firelay.cloud/en/c/message_boards/find_thread?p_l_id=4041874&amp;threadId=4393425" />
  <subtitle>Simulation gets stuck in December</subtitle>
  <id>https://dlt-acc.firelay.cloud/en/c/message_boards/find_thread?p_l_id=4041874&amp;threadId=4393425</id>
  <updated>2026-05-12T16:53:11Z</updated>
  <dc:date>2026-05-12T16:53:11Z</dc:date>
  <entry>
    <title>RE: Simulation gets stuck in December</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/en/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4393428" />
    <author>
      <name>Jing Zhao</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/en/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4393428</id>
    <updated>2017-04-18T15:21:30Z</updated>
    <published>2017-04-18T15:21:30Z</published>
    <summary type="html">Dear Rusty, &lt;br /&gt;&lt;br /&gt;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. &lt;br /&gt;&lt;br /&gt;With kind regards,&lt;br /&gt;&lt;br /&gt;Jing Zhao&lt;br /&gt;Deltares</summary>
    <dc:creator>Jing Zhao</dc:creator>
    <dc:date>2017-04-18T15:21:30Z</dc:date>
  </entry>
  <entry>
    <title>Simulation gets stuck in December</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/en/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4393424" />
    <author>
      <name>Rusty Holleman</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/en/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4393424</id>
    <updated>2017-04-17T20:44:43Z</updated>
    <published>2017-04-17T20:44:19Z</published>
    <summary type="html">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.&lt;br /&gt;&lt;br /&gt;&lt;div class="lfr-code"&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;1&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;2&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;&amp;nbsp; &amp;nbsp; case (&amp;#39;M&amp;#39;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;3&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; imonth = imonth + ti_split&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;4&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; if (imonth &amp;gt; 12) then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;5&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;imonth = mod(imonth, 12)&amp;nbsp; &amp;nbsp;; SWAP&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;6&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;iyear = iyear + floor(real(imonth)/12.0) ; SWAP&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;7&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; end if&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Switching the order of the &amp;#39;SWAP&amp;#39; lines allows the runs to continue, at least in our limited testing so far.  Please let me know if I&amp;#39;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.&lt;br /&gt;&lt;br /&gt;Best,&lt;br /&gt;Rusty</summary>
    <dc:creator>Rusty Holleman</dc:creator>
    <dc:date>2017-04-17T20:44:19Z</dc:date>
  </entry>
</feed>
