Making fixes trying to run the linear quasigeostrophic code example.