use emin in fidasim.f90 and misc.