</span></span>
<span class="r-in"><span><span class="fu">add_divergence</span><span class="op">(</span><span class="va">g</span>,</span></span>
<span class="r-in"><span>               coastal_outlet_ids <span class="op">=</span> <span class="va">outlets</span>,</span></span>
<span class="r-in"><span>               inland_outlet_ids <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="op">)</span>,</span></s