      <span class="keyword">end</span>
                <span class="keyword">end</span>

                <span class="comment">% Inner loop over all walls</span>
                <span class="keyword">for</span> j = 1:drv.n_walls
                    w = drv.walls(j);

                    <span class="comment">% Check for existing interaction</span>
                    <span class="keyword">if</span> (any(p1.neigh_wid == w.id))
                        <span class="comment">% Get interaction object</span>
    