ent">% Make sure we have bathymetry</span>
0166 <span class="keyword">if</span> sum(h)==0
0167     have_bath=false;
0168 <span class="keyword">else</span>
0169     have_bath=true;
0170 <span class="keyword">end</span>
0171 
0172 <span class="comment">% Make sure we have positive depths</span>
0173 <span class="keyword">if</span> sum(h&gt;0) &lt; sum(h&lt;0)
0174     h = -h;
0175 <span class="keyword">end</span>
0176 
0177 <span class="comment">% Build array of all the nodes in the open boundaries</span>
017