added crude unit handling for gmax/permeability inhomogeneous parameters