comment">% B: full overlap of domain and element (left)</span>
0036   Svp = 1+(xp-xv)/h;
0037   dSvp= 1/h;
0038 <span class="keyword">elseif</span> (  -lp)&lt;(xp-xv) &amp;&amp; (xp-xv)&lt;=(   lp)                                  <span class="comment">% C: partial overlap of domain and two elements element</span>
0039   Svp = 1-((xp-xv)^2+lp^2)/(2*h*lp);
0040   dSvp=-(xp-xv)/(h*lp);
0041 <span class="keyword">elseif</span> (   lp)&lt;(xp-xv) &amp;&amp; (xp-xv)&lt;=( h-lp)                                  <