Testing hand-coded gradient (hc) against finite difference gradient (fd), if the ratio ||fd - hc|| / ||hc|| is
0 (1.e-8), the hand-coded gradient is probably correct.
Finite difference gradient
Vec Object: 1 MPI processes
  type: seq
269.684
Hand-coded gradient
Vec Object: 1 MPI processes
  type: seq
269.684

ratio ||fd-hc||/||hc|| = 7.33785e-07, difference ||fd-hc|| = 0.00019789
Finite difference gradient
Vec Object: 1 MPI processes
  type: seq
-1
Hand-coded gradient
Vec Object: 1 MPI processes
  type: seq
-1

ratio ||fd-hc||/||hc|| = 2.22045e-16, difference ||fd-hc|| = 2.22045e-16
Finite difference gradient
Vec Object: 1 MPI processes
  type: seq
-1
Hand-coded gradient
Vec Object: 1 MPI processes
  type: seq
-1

ratio ||fd-hc||/||hc|| = 2.22045e-16, difference ||fd-hc|| = 2.22045e-16
Tao Object: 1 MPI processes
  type: test
  Active Set subset type: subvec
  convergence tolerances: fatol=1e-15,   frtol=1e-15
  convergence tolerances: gatol=1e-15,   steptol=0,   gttol=1e-15
  Residual in Function/Gradient:=0
  Objective value=0
  total number of iterations=0,                          (max: 2000)
  total number of function evaluations=6,                  max: 4000
  total number of gradient evaluations=3,                  max: 4000
  Solution converged:    User Terminated
Vec Object: 1 MPI processes
  type: seq
1
