       <span class="comment">% Set flag for insulated interaction</span>
            int.insulated = w.insulated;

            <span class="comment">% Add references of new interaction to particle and global list</span>
            p.interacts(end+1)   = int;
            p.neigh_w(end+1)     = w;
            p.neigh_wid(end+1)   = w.id;
            drv.interacts(end+1) = int;
        <span class="keyword">end</span>
    <span class="keyword">end</span>
</pre><pre class="codeinput"><span class="keyword">end<