Modified the evaluation of gradPhi to use dx depending on delta