Added a maximum number of LSE solver iterations and fixed calls for porosity and permeability files