<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Sometimes the FILL_SINKS_DHSVM.c program seems to get stuck in an
      endless loop and doesn't ever resolve. In those situations I have
      found it helpful to take the flow direction grid that the program
      produces (I think it is named dir.bin) and use that within a GIS
      to fill the DEM using the D4 approach. It seems to fill at least
      enough of the sinks that when I run the FILL_SINKS_DHSVM.c program
      again on the resultant DEM it often will run to completion. I hope
      that helps.</p>
    <div class="moz-cite-prefix">On 6/12/2023 4:06 AM, 2330152080 wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:tencent_D2F7DA43A54DACEC1B091D4CA9BE999CA005@qq.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div>
        <p class="MsoNormal"><span
            style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:Calibri;
            mso-hansi-font-family:Calibri;mso-bidi-font-family:'Times
            New Roman';font-size:10.5000pt;
            mso-font-kerning:1.0000pt;"><font face="Calibri">Thank you
              for your reply!</font></span><span
            style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:Calibri;
            mso-hansi-font-family:Calibri;mso-bidi-font-family:'Times
            New Roman';font-size:10.5000pt;
            mso-font-kerning:1.0000pt;"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:Calibri;
            mso-hansi-font-family:Calibri;mso-bidi-font-family:'Times
            New Roman';font-size:10.5000pt;
            mso-font-kerning:1.0000pt;"><font face="Calibri">I have
              adopted your advice. But when I add this option</font></span><span
style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:Calibri;
            mso-hansi-font-family:Calibri;mso-bidi-font-family:'Times
            New Roman';font-size:10.5000pt;
            mso-font-kerning:1.0000pt;"> </span><span
            style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:Calibri;
            mso-hansi-font-family:Calibri;mso-bidi-font-family:'Times
            New Roman';font-size:10.5000pt;
            mso-font-kerning:1.0000pt;"><font face="Calibri">"-D
              DHSVM_D8:BOOL=ON"  to the configuration , the result is
              same as not adding this option.</font></span><span
            style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:Calibri;
            mso-hansi-font-family:Calibri;mso-bidi-font-family:'Times
            New Roman';font-size:10.5000pt;
            mso-font-kerning:1.0000pt;"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:Calibri;
            mso-hansi-font-family:Calibri;mso-bidi-font-family:'Times
            New Roman';font-size:10.5000pt;
            mso-font-kerning:1.0000pt;"><font face="Calibri">I didn</font></span><span
style="mso-spacerun:'yes';font-family:Calibri;mso-fareast-font-family:宋体;
            mso-bidi-font-family:'Times New
            Roman';font-size:10.5000pt;mso-font-kerning:1.0000pt;">’</span><span
style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:Calibri;
            mso-hansi-font-family:Calibri;mso-bidi-font-family:'Times
            New Roman';font-size:10.5000pt;
            mso-font-kerning:1.0000pt;"><font face="Calibri">t know if I
              have done something wrong. Here is my diagram of how to do
              it. I just add this option to the option section of
              configuration. </font></span><span
            style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:Calibri;
            mso-hansi-font-family:Calibri;mso-bidi-font-family:'Times
            New Roman';font-size:10.5000pt;
            mso-font-kerning:1.0000pt;"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: 宋体; font-size:
            10.5pt;"><font face="Calibri">And I used the DHSVM3.1.2
              version, from the official website.</font></span><span
            style="font-family: Calibri; font-size: 10.5pt;"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: Calibri;
            font-size: 10.5pt;">Of course, I am also trying your other
            method, but the result has not come out yet.</span></p>
      </div>
      <div style="position: relative;">
        <div style="font-size: 12px;font-family: Arial
          Narrow;padding:2px 0 2px 0;">------------------ Original
          ------------------</div>
        <div style="font-size: 12px;background:#efefef;padding:8px;">
          <div><b>From:</b> "dhsvm-users"
            <a class="moz-txt-link-rfc2396E" href="mailto:dhsvm-users-request@mailman12.u.washington.edu"><dhsvm-users-request@mailman12.u.washington.edu></a>;</div>
          <div><b>Date:</b> Wed, Jun 7, 2023 09:20 PM</div>
          <div><b>To:</b> "dhsvm-users"<a class="moz-txt-link-rfc2396E" href="mailto:dhsvm-users@u.washington.edu"><dhsvm-users@u.washington.edu></a>;<wbr></div>
          <div><b>Subject:</b> Dhsvm-users Digest, Vol 137, Issue 2</div>
        </div>
        <div><br>
        </div>
        Send Dhsvm-users mailing list submissions to<br>
        <a class="moz-txt-link-abbreviated" href="mailto:dhsvm-users@u.washington.edu">dhsvm-users@u.washington.edu</a><br>
        <br>
        To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a class="moz-txt-link-freetext" href="http://mailman12.u.washington.edu/mailman/listinfo/dhsvm-users">http://mailman12.u.washington.edu/mailman/listinfo/dhsvm-users</a><br>
        or, via email, send a message with subject or body 'help' to<br>
        <a class="moz-txt-link-abbreviated" href="mailto:dhsvm-users-request@mailman12.u.washington.edu">dhsvm-users-request@mailman12.u.washington.edu</a><br>
        <br>
        You can reach the person managing the list at<br>
        <a class="moz-txt-link-abbreviated" href="mailto:dhsvm-users-owner@mailman12.u.washington.edu">dhsvm-users-owner@mailman12.u.washington.edu</a><br>
        <br>
        When replying, please edit your Subject line so it is more
        specific<br>
        than "Re: Contents of Dhsvm-users digest..."<br>
        <br>
        <br>
        Today's Topics:<br>
        <br>
           1. Re: How to remove the DEM sink (Ed Salminen)<br>
        <br>
        <br>
----------------------------------------------------------------------<br>
        <br>
        Message: 1<br>
        Date: Wed, 7 Jun 2023 06:20:19 -0700<br>
        From: Ed Salminen <a class="moz-txt-link-rfc2396E" href="mailto:salminen@watershednet.com"><salminen@watershednet.com></a><br>
        To: <a class="moz-txt-link-abbreviated" href="mailto:dhsvm-users@u.washington.edu">dhsvm-users@u.washington.edu</a><br>
        Subject: Re: [Dhsvm-users] How to remove the DEM sink<br>
        Message-ID:
        <a class="moz-txt-link-rfc2396E" href="mailto:2bde385e-cd98-01d1-a749-6b2dba78dc2b@watershednet.com"><2bde385e-cd98-01d1-a749-6b2dba78dc2b@watershednet.com></a><br>
        Content-Type: text/plain; charset="utf-8"; Format="flowed"<br>
        <br>
        The problem may be that you filled sinks in your DEM in a GIS
        that used <br>
        an eight direction (D8) flow direction approach, but DHSVM uses
        a four <br>
        direction (D4) approach as described in the snippet you included
        below.<br>
        <br>
        Did you run the FILL_SINKS_DHSVM.c program to prepare your DEM
        prior to <br>
        running DHSVM? This will fill the sinks in the DEM using a D4
        approach. <br>
        The source code (if you don't already have it) can be found
        here: <br>
<a class="moz-txt-link-freetext" href="https://github.com/pnnl/DHSVM-PNNL/blob/master/DHSVM/program/FILL_SINKS_DHSVM.c">https://github.com/pnnl/DHSVM-PNNL/blob/master/DHSVM/program/FILL_SINKS_DHSVM.c</a><br>
        <br>
        Alternatively there now appears to be a way to configure DHSVM
        to use a <br>
        D8 approach. If you go to this page
        (<a class="moz-txt-link-freetext" href="https://github.com/pnnl/DHSVM-PNNL">https://github.com/pnnl/DHSVM-PNNL</a>) <br>
        and scroll to the bottom under "Experimental Surface/Subsurface
        Mode" it <br>
        describes how you can enable the D8 approach when building the
        model <br>
        with CMake.<br>
        <br>
        I hope that helps.<br>
        <br>
        E<br>
        <br>
        <br>
        On 6/7/2023 12:20 AM, 2330152080 wrote:<br>
        > Hello:<br>
        > I find the final surface runoff appears abnormally large in
        the final <br>
        > mass balance file. You can see the first figure.<br>
        > Although I have read the Q&A about this question, but I
        really did't <br>
        > know how to resolve it. (fig2)<br>
        > I hope you can give me some advice. Thank you very much for
        your time.<br>
        > Shutao Wang<br>
        ><br>
        ><br>
        ><br>
        > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? fig1<br>
        ><br>
        > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?fig2<br>
        ><br>
        ><br>
        ><br>
        ><br>
        > _______________________________________________<br>
        > Dhsvm-users mailing list<br>
        > <a class="moz-txt-link-abbreviated" href="mailto:Dhsvm-users@u.washington.edu">Dhsvm-users@u.washington.edu</a><br>
        >
        <a class="moz-txt-link-freetext" href="http://mailman12.u.washington.edu/mailman/listinfo/dhsvm-users">http://mailman12.u.washington.edu/mailman/listinfo/dhsvm-users</a><br>
        <br>
        -- <br>
        Ed Salminen, Hydrologist<br>
        Watershed Professionals Network LLC<br>
        PO Box 8 | Mount Hood Parkdale, OR 97041<br>
        (541) 490-6644<br>
        -------------- next part --------------<br>
        An HTML attachment was scrubbed...<br>
        URL:
<a class="moz-txt-link-rfc2396E" href="http://mailman12.u.washington.edu/pipermail/dhsvm-users/attachments/20230607/d9f203dd/attachment.html"><http://mailman12.u.washington.edu/pipermail/dhsvm-users/attachments/20230607/d9f203dd/attachment.html></a><br>
        -------------- next part --------------<br>
        A non-text attachment was scrubbed...<br>
        Name: <a class="moz-txt-link-abbreviated" href="mailto:3A5B992C@C8914517.A72F8064.png.jpg">3A5B992C@C8914517.A72F8064.png.jpg</a><br>
        Type: image/jpeg<br>
        Size: 83538 bytes<br>
        Desc: not available<br>
        URL:
<a class="moz-txt-link-rfc2396E" href="http://mailman12.u.washington.edu/pipermail/dhsvm-users/attachments/20230607/d9f203dd/attachment.jpg"><http://mailman12.u.washington.edu/pipermail/dhsvm-users/attachments/20230607/d9f203dd/attachment.jpg></a><br>
        -------------- next part --------------<br>
        A non-text attachment was scrubbed...<br>
        Name: <a class="moz-txt-link-abbreviated" href="mailto:2C06F607@8DCEF01F.A72F8064.jpg">2C06F607@8DCEF01F.A72F8064.jpg</a><br>
        Type: image/jpeg<br>
        Size: 407019 bytes<br>
        Desc: not available<br>
        URL:
<a class="moz-txt-link-rfc2396E" href="http://mailman12.u.washington.edu/pipermail/dhsvm-users/attachments/20230607/d9f203dd/attachment-0001.jpg"><http://mailman12.u.washington.edu/pipermail/dhsvm-users/attachments/20230607/d9f203dd/attachment-0001.jpg></a><br>
        <br>
        ------------------------------<br>
        <br>
        Subject: Digest Footer<br>
        <br>
        _______________________________________________<br>
        Dhsvm-users mailing list<br>
        <a class="moz-txt-link-abbreviated" href="mailto:Dhsvm-users@mailman12.u.washington.edu">Dhsvm-users@mailman12.u.washington.edu</a><br>
        <a class="moz-txt-link-freetext" href="http://mailman12.u.washington.edu/mailman/listinfo/dhsvm-users">http://mailman12.u.washington.edu/mailman/listinfo/dhsvm-users</a><br>
        <br>
        <br>
        ------------------------------<br>
        <br>
        End of Dhsvm-users Digest, Vol 137, Issue 2<br>
        *******************************************</div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Dhsvm-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dhsvm-users@u.washington.edu">Dhsvm-users@u.washington.edu</a>
<a class="moz-txt-link-freetext" href="http://mailman12.u.washington.edu/mailman/listinfo/dhsvm-users">http://mailman12.u.washington.edu/mailman/listinfo/dhsvm-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Ed Salminen, Hydrologist
Watershed Professionals Network LLC
PO Box 8 | Mount Hood Parkdale, OR 97041
(541) 490-6644</pre>
  </body>
</html>