From 5fc44f9aa6fda386fcc4dc124e410139023d66e3 Mon Sep 17 00:00:00 2001 From: Travis O'Brien Date: Thu, 19 May 2022 14:41:34 -0400 Subject: [PATCH] Fix to polar boundary condition issue in teca_vorticity.cxx --- alg/teca_vorticity.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alg/teca_vorticity.cxx b/alg/teca_vorticity.cxx index d23b2b377..f24c83887 100644 --- a/alg/teca_vorticity.cxx +++ b/alg/teca_vorticity.cxx @@ -118,7 +118,7 @@ void vorticity(num_t *w, const pt_t *lon, const pt_t *lat, num_t *dest = w; num_t *src = w + n_lon; for (unsigned long i = 0; i < n_lon; ++i) - dest[i] = src[i+n_lon]; + dest[i] = src[i]; dest = w + max_j*n_lon; src = dest - n_lon;