problem.c for mercury: GR correction