">% Compute relative permeability coefficients</span>
            klr = this.liqRelativePermeability.calculate(Sl, this.porousMedia);
            kgr = this.gasRelativePermeability.calculate(Sl, this.porousMedia);
            <span class="comment">% Permeability matrices</span>
            Kll = K * klr / mul;
            Klg = zeros(2);
            Kgl = zeros(2);
            Kgg = K * kgr / mug;
        <span class="keyword">end</span>

        <span class="comment">%--------------------------------------