Debuggin potential vorticity in E3SM
Choosing actual functions for PV formulation:
We use the folliwng formulation of potential vorticity:
PV=−p0∂ηa+ps∂ηbg[(ζη+f)∂ηθ−rcosφ1(∂ηv)(η∂λθ)+r1(∂ηu)(η∂φθ)]
with ζη=rcosφ1((η∂λv)−(η∂φucosϕ))
Pitfalls of comparing against lat-lon grids:
Assuming I calculate the above quantity correctly, then ∂u
and ∂v
are are calculated
to machine precision. That is, assuming we have an internal (numerical) state u,vmijk
where m
indexes element ID, i,j
index the tensored GLL points within an element, and k
indexes level.