Optimizing IMEX convergence

In the first phase of this work, we compare SA HOMME and DA HOMME with the numerical Jacobian to remove the analytic Jacobian math in DA HOMME as a source of error.

For the Matsuno-gill heating pattern (20 levels, full-size earth, 10km model top), time steps at the two-day mark converge in 6 iterations in DA HOMME but 3 iterations in SA HOMME. Both models are using their respective numerical jacobian routines.

This indicates that the form of the analytic Jacobian is not the source of our problems.

Next steps:

  • Ensure that there is no mis-treatment of upper boundary condition in DA HOMME numerical Jacobian code
  • Test sensitivity to initial guess.
  • Identify tuning parameters for convergence and test sensitivity.

Checking if rest of imex routines are broken:

Hypothesis: treatment of Fn (residual) does not include QHE terms? Experiment: disable QHE terms in explicit. Is convergence better?

  • If extra terms of QHE are omitted, numerical Jacobian converges in 3 iterations past day 10!
  • Do addition of QHE change acoustic mode?

Todo:

  • Verify numerical Jacobian is stable to 20 days with "hydrostatic" initial guess

    • 10 days: 4 iterations.
    • Potential offshoot project: is quasi-hydrostatic guess better?
  • Verify analytic Jacobian is dogshit at 20 days without "hydrostatic" initial guess

    • With better initial guess: 5 iterations at 20 days.
    • With explicit w initial guess: 10 iterations at 5 days
  • Contingent on this: analyze |J_analytic - J_numerical| test residual by level.

    • Order of magnitude is independent of level :(
  • If it's bad at boundaries, life's good. If not, rework analytic Jacobian.

Todo: rework jacobian lmao

Parent post: