" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> function gen_unstructured_mesh(lx,ly,res,cornermod)

 DESCRIPTION:
    Generate an unstructured mesh in a rectangular domain of size dist_x*dist_y 
    having a resolution of res.  

 INPUT
    lx        :  domain length in x-direction
    ly        :  domain length in y-direction
    res       :  target triangle edge length in same units as lx,ly 
    cornermod :  ensure no cell shares a boundary on two of the rectangles edg