modifed Dsearch to check if ktol satisfied first BEFORE solving for the midpoint D. This is analogous to shifting by dv and computing |f| first in Creeper before computing J and doing KSPSolve