## Introduction

In this continuation paper to Starius (**2018**), referred to as (S-E-P) below, we consider numerical methods for the shallow water equations on the sphere, using the Equator-Pole (E-P) grid system. We make use of a reduced grid system for an annular band around the equator, which is divided into segments, each covered with a lat-lon net. As in (S-E-P) the equatorial grid is complemented by two orthogonal polar grids obtained by suitably modified stereographic coordinates. The whole grid system is optimised by minimising a global measure of uniformity, namely the maximum of all deviation factors on the sphere, where as in (S-E-P), the deviation factor for a net rectangle is the greatest ratio of its side-lengths.

The methods of this paper give an accuracy in the total mass, which is considerably higher than needed for NWP. This was already shown for the smooth Rossby-Haurwitz wave example for the method in (S-E-P). Here it is also verified, with and without reductions, for non-smooth solutions by considering the Cosine bell no. 1 and the mountain problem no. 5 in Williamson et al. (**1992**), the former with second order and the latter with first order discontinuous derivatives in their solutions. We have also integrated the mountain problem for a time period of 5 years, with maximal relative errors in the total mass of order ${10}^{-5}.$ For the total energy the corresponding quantities were of order ${10}^{-2}.$

If *K* denotes the number of segments on a hemisphere, then there are 2 *K*-1 segments on the whole sphere, since the two segments closest to the equator are merged together. We note that *K* = 1 is the case considered in (S-E-P). By reductions the uniformity is improved and the total number of grid points can be decreased by 20% or more, with no substantial change in accuracy. For high resolution also the computing time will be reduced by a similar percentage. High order one-dimensional centred interpolation formulas are used to connect the discretisations on adjacent segments. The kind of deviations from uniformity that arise by changing the number of grid points on parallels do not cause any problems, at least not for the methods described in this paper.

We now briefly comment on some other methods considered in the literature. Our main sources are the two overview papers Staniforth and Thuburn (**2012**) and Williamson (**2007**). There are many other grid techniques than ours for the sphere, among which the most popular are the cubed sphere, the icosahedral and the Yin-Yang grid systems. The paper (S-E-P) contains a more detailed overview than the one given below.

Cubed sphere grids (Sadourny, **1972**) consist of quadrilaterals and have been used for finite volume methods in, e.g. (Putman and Lin, **2007**; Ullrich et al., **2010**), for discontinuous Galerkin methods in, e.g. (Nair et al., **2005**; Bao et al., **2014**) and for finite difference methods in, e.g. (Ronchi et al., **1996**). Some drawbacks are lack of orthogonality and deviation from uniformity, particularly at the 8 corner-points of the cube, where angles up to ${120}^{o}$ instead of the ideal ${90}^{o}$ occur.

Icosahedral grids (Williamson, **1968**) are generally triangular and have been used for finite volume methods in, e.g. (Pudykiewics, **2011**; Chen et al., **2014**) and for discontinuous Galerkin methods in, e.g. (Giraldo, **2006**; Läuter et al., **2008**). At the 12 corner-points of the icosahedron there are angles up to ${72}^{o}$ instead of the ideal ${60}^{o}.$

The more recently developed Yin-Yang grid, in Kageyama and Sato (**2004**), is an overset grid system consisting of two congruent orthogonal subgrids based on spherical coordinates and having maximal deviation factor $\sqrt{2}.$ This grid has been used by, e.g. Qaddouri and Lee (**2011**) and for a full 3d model by Allen and Zerroukat (**2016**). Both this grid system and ours use overset and orthogonal grids, which leads to an obvious similarity between the two techniques.

The great importance of the axis of the Earth for the dynamics of the weather is clear. However, the Yin-Yang grid does not have good rotational symmetry properties relative to this axis, not even near the poles, for details see, e.g. Section 1 in (S-E-P). At the end of Section 3.4, we compare the Yin-Yang grids and ours with respect to the total number of grid points, both with the same number on the equator.

The paper is organised as follows. In Section 2, we introduce the set of governing equations, some notation, and also some coordinate systems. This section is essentially a summary of Section 2 in (S-E-P).

Section 3 is devoted to reduced grid systems for annular bands around the equator. Two methods, I and II, to divide the band into segments and then to connect them by interpolation, are considered in Sections 3.1 and 3.2. Method I is quite general and easy to implement but requires more interpolation coefficients than method II. However, method II has limitations in its applicability, which is discussed in Section 3.2. In Section 3.3, two different measures of uniformity, used to generate suitable grid systems for the sphere, are compared. In Section 3.4, an E-P grid system is constructed with square net rectangles at mid-latitudes, which is often required for NWP models.

In Section 4, we investigate our E-P grid systems numerically, both with and without reductions. Centred finite differences of high order are used for the spatial discretisations and the explicit fourth order Runge-Kutta method for the time integration. First some notation for various errors is introduced and then, in Section 4.1, smoothing by addition of a ’hyper-diffusion’ term is considered. For a discretisation method of order 2*p* a smoothing term of the same order is used, in contrast to the method in (S-E-P) where the order is always equal to 4. In Section 4.2, the rotation of the Cosine bell is considered and for this scalar advection example both the total mass and energy are obtained with much higher accuracy than for the height of the fluid. In Section 4.3, our results for an example by Läuter et al. (**2005**) show that the reduction techniques work quite well, the accuracy is very much the same for *K* = 1,2,3,4, particularly for the 6th order method. In Section 4.4, we consider zonal flow over an isolated mountain, example no. 5 in Williamson et al. (**1992**), with non-smooth solutions. The errors in the total mass shown in Table 6 are clearly small enough for NWP. We mention that no ‘corrections’ or ’fixers’ of any kind have been used.

In (S-E-P) further numerical examples are given, and also investigations of grid imprinting and comparisons between formal and computational orders of discretisation errors are considered.

## Coordinate systems and governing differential equations

In this section, we introduce some notation and give a frame of reference for the paper. It is essentially a summary of Section 2 in (S-E-P).

### Spherical coordinates and the shallow water equations

The transformation between Cartesian and spherical coordinates on the sphere is

*a*is the radius of the sphere,

*λ*the longitude, and

*θ*the latitude. The advective form of the shallow water equations in spherical coordinates is given by

*u*and

*v*the eastward and northward velocity components, respectively.

### Standard and modified stereographic coordinates

Consider first the standard stereographic coordinates. The relation between these and spherical coordinates can be expressed as

*α*= 1 on the northern and −1 on the southern hemisphere.

Since the velocities in spherical coordinates, $u=a\hspace{0.17em}\text{cos}\hspace{0.17em}\theta d\lambda /dt,$$v=ad\theta /dt,$ are not uniquely defined at the poles, we use instead the stereographic velocities $U=-d{x}_{st}/dt,V=d{y}_{st}/dt.$ Observe the use of the minus sign in the definition of *U*, intended to get nicer formulas, namely

*U*and

*V*have been scaled by the factor $1/{m}_{f}(\theta ).$ The mapping (4) is also used in Starius (

**2014**), where it is derived by orthogonal projection of the vector (

*u*,

*v*) onto the equatorial plane.

Stereographic projection is only suitable for grid generation close to the poles. Here we will use a modification of (3), already recommended in Section 2.3 of (S-E-P), so that the lat-lon and our new modified stereographic grid points will coincide on the meridian corresponding to *λ* = 0, and automatically also on the meridians $\lambda =\frac{1}{2}\pi ,\pi ,\frac{3}{2}\pi ,$ provided the number of grid points on parallels in the last segment of the reduced grid is divisible by 4. The assumption for *λ* = 0 leads to new coordinates $(x\prime ,y\prime )$ related to $({x}_{st},{y}_{st})$ by

The modified coordinates $(x\prime ,y\prime )$ give rise to more uniform polar grids and will also simplify the connection between these grids and the last segments of the equatorial grid system. The shallow water equations expressed in the coordinates defined by (3) and (5), and the stereographic velocities *U* and *V* given in (4), are written down in full detail in Section 2.3 of (S-E-P).

## Reduced latitude-longitude grid systems covering an equatorial band

In this Section, we consider the possibility to utilise a reduced grid system for an annular band around the equator, cf. Gates and Riegel (**1963**), Kurihara (**1965**), Tolstykh and Shashkin (**2012**), and Starius (2014). We also mention the reduced Gaussian grids for spectral models in Hortal and Simmons (**1991**), reported to decrease the computing time by about 20%, and used by ECMWF in their operational model. Further, the papers Layton (**2002**) and Li (**2018**) are worth mentioning in this context. The band is divided into segments, each covered with a lat-lon net. Let *n* be the given number of grid points on the equator and *K* the number of segments on a hemisphere. Here we choose to have invariance under reflection in the equator, where the closest two segments are merged together, which implies that the total number of segments is 2 *K*-1 and the total number of subgrids is 2 *K* + 1. We recall that *K* = 1 is the case studied in (S-E-P).

We will later define latitudes ${\theta}_{1}<{\theta}_{2}<\dots <{\theta}_{K}$ such that the i:th segment *S _{i}* is bounded by ${\theta}_{i-1}$ and

*θ*, $i=1,2,\dots ,K,$ where ${\theta}_{0}=0.$ Also the number of grid points

_{i}*n*on a parallel in

_{i}*S*has to be defined and satisfy ${n}_{1}>{n}_{2}>\dots >{n}_{K},$ and the longitudinal steps are defined by $\Delta {\lambda}_{i}=2\pi /{n}_{i},$ where $i=1,2,\dots ,K.$ We note that ${n}_{1}=n$ and when only one longitudinal step is used, for example for

_{i}*K*= 1, it is called $\Delta \lambda .$

We now discretise the segments introduced above. Assume that all the latitudes *θ _{i}* are multiples of a latitudinal step $\Delta \theta .$ Consider for each

*i*, with $1\le i\le K,$ the parallels ${\theta}_{i-1}+k\Delta \theta ,k=0,\dots ,{s}_{i},$ where ${s}_{i}=({\theta}_{i}-{\theta}_{i-1})/\Delta \theta ,$ and let ${S}_{i}^{d}$ be the corresponding lat-lon net. Note that we have let ${S}_{i}^{d}$ and ${S}_{i+1}^{d}$ both contain the parallel corresponding to

*θ*, which will ease the presentation in Sections 3.1 and 3.2. When the discrete segments have been defined, we omit the parallel

_{i}*θ*from ${S}_{i+1}^{d},$ i = 1,…K-1, cf. Fig. 1.

_{i}In this section, we will often use the fact that for a parallel with latitude *θ* and angular longitudinal step $\Delta \lambda ,$ the distance along the parallel between two consecutive grid points is $\Delta \lambda \hspace{0.17em}\text{cos}\hspace{0.17em}\theta .$

### Method I: reduced latitude-longitude grid system

Here the number of segments *K* will be given by the user. The deviation factor at the equator is ${\sigma}_{K}=\Delta {\lambda}_{1}/\Delta \theta ,$ where $\Delta \theta $ will be the same for all discretised segments and determined later. We consider the segment ${S}_{i}^{d}$ and require that the distances between grid points on the parallel ${\theta}_{i-1}$ are equal to $\Delta {\lambda}_{1},$ that is $\Delta {\lambda}_{i}\hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}_{i-1}=\Delta {\lambda}_{1},$ where $i=2,\dots ,K.$ Further, the maximal deviation factor for the segment ${S}_{i}^{d}$ is $\mathrm{max}(\Delta {\lambda}_{i}\hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}_{i-1}/\Delta \theta ,\Delta \theta /(\Delta {\lambda}_{i}\hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}_{i})),$ which is obviously minimised, with respect to $\Delta {\lambda}_{i}/\Delta \theta ,$ when the two deviation factors in the $\mathrm{max}$ above are equal. We now have the equalities

The transition from ${S}_{K}^{d}$ to a polar grid gives that ${\sigma}_{K}={m}_{f}({\theta}_{K})=2/(1+\hspace{0.17em}\text{sin}\hspace{0.17em}{\theta}_{K}),$ where ${m}_{f}(\theta )$ is the mapfactor in Section 2.2, cf. (12) in Section 3.2 of (S-E-P). This equality and the right hand side of (7) imply

*θ*, $i=1,2,\dots ,K$−1. Note that (8) implies that ${\theta}_{K}\to \frac{1}{2}\pi ,$ and hence ${\sigma}_{K}\to 1,$ as $K\to \infty .$

_{i}Now $\Delta \theta =\Delta {\lambda}_{1}/{\sigma}_{K}$ can be evaluated and for practical reasons modified by defining the integer *m* to be $\frac{1}{2}\pi /(\Delta {\lambda}_{1}/{\sigma}_{K})$ rounded to the nearest integer and then redefining $\Delta \theta =\frac{1}{2}\pi /m.$ With $\Delta \theta $ known we now round the latitudes *θ _{i}*, $i=1,2,\dots ,K,$ to their closest multiples of $\Delta \theta .$ Finally we set ${n}_{i}=n\hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}_{i-1},$ round it to the nearest integer, and define $\Delta {\lambda}_{i}=2\pi /{n}_{i},i=2,\dots ,K.$

In Table 1, the overlap between the last segment in the reduced grid and the polar grid is 3, which only affects the number of parallels in this segment. An increase in the number of segments leads to a decrease in the total number of discretisation points and in the maximal deviation factor. In Fig. 1, a reduced grid with n = 160 and *K* = 3 is illustrated. More realistic resolutions for NWP are for instance n = 1000, K = 10, which gives p = 20.7% and ${s}_{10}=9,$ and n = 2000, K = 10, which gives p = 20.8% and ${s}_{10}=16.$ We recall that the above procedure requires only one-dimensional interpolation and that the coefficients in the formulas should be computed and stored during preprocessing. The number of sequences of interpolation coefficients is ${n}_{1}+2({n}_{2}+\dots +{n}_{K-1})+{n}_{K},$ which for high resolution is negligible compared to other storage requirements. A less general method using considerably fewer interpolation formulas is briefly described in Section 3.2.

A way to avoid scalability problems for the couplings between the reduced grid and the northern polar grid, say, is to let the former reach a high latitude. Since *θ _{K}* increases slowly with

*K*(for instance

*K*= 10 gives only ${\theta}_{10}={65.8}^{o}$) we will now consider a modification of method I, which is suitable for high latitudes. We choose

*K*and determine the first

*K*segments and the corresponding maximal deviation factor

*σ*, and then complement this by the desired number of additional segments, each optimised with respect to

_{K}*σ*. More specifically, additional latitudes ${\theta}_{K+1},{\theta}_{K+2},\dots $ can be determined by the equation $\text{cos}\hspace{0.17em}{\theta}_{i}={\sigma}_{K}^{-2i},i>K,$ and then also ${n}_{i}=n\hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}_{i-1}\text{and}\Delta {\lambda}_{i}=2\pi /{n}_{i},iK,$ where the

_{K}*n*have been rounded in a suitable way.

_{i}We conclude this subsection with two examples. For initial *K* = 3, we have ${\sigma}_{3}=1.0988$ and the corresponding latitudes are: 34.0, 46.8, 55.1, 61.9268, 67.0595, 71.1657, 74.4912, 77.2050, 79.4305, 81.2615. If we want the reduced grid to reach the polar circles, then we add two segments, so that *K* = 5, and reach latitude ${67}^{o}.$ The maximal deviation factor for the whole reduced grid system is still *σ*_{3}. In a second example, with initial *K* = 1 and ${\sigma}_{1}=1.1892,$ two segments have to be added, so that *K* = 3, for the reduced grid to pass the polar circles. There is obviously a trade-off between uniformity and the possibility to use a small number of segments.

### Method II: reduced latitude-longitude grid system

This method is essentially applicable with a small number of segments and special choices of *n*. However, its range of applicability can be extended in ways described below. The notation and assumptions of Section 3.1 will be used here, and only a brief outline of the method will be given.

The method is based on the following simple idea. In a consecutive manner we replace *q* longitudinal mesh intervals in segment ${S}_{i}^{d}$ with *q*−1 intervals in the following segment ${S}_{i+1}^{d}.$ As for method I we require that $\Delta {\lambda}_{i}\hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}_{i-1}=\Delta {\lambda}_{1},$ where $i=2,\dots ,K,$ and further that each *n _{i}*, with

*i*<

*K*, is divisible by

*q*. This implies that $\Delta {\lambda}_{i+1}/\Delta {\lambda}_{i}={n}_{i}/{n}_{i+1}=q/(q-1).$ Further, $\Delta {\lambda}_{i}\hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}_{i-1}=\Delta {\lambda}_{i+1}\hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}_{i}$ together with (7) leads to $\Delta {\lambda}_{i+1}/\Delta {\lambda}_{i}=\hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}_{i-1}/\hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}_{i}={\sigma}^{2},$ where we write

*σ*instead of

*σ*, since

_{K}*σ*is now independent of

*K*. We choose

*q*and determine

*σ*and ${\vartheta}_{0},$ where ${\vartheta}_{0}$ is the width of the reduced grid, by using

We now determine *θ _{i}* by $\text{cos}\hspace{0.17em}{\theta}_{i}={\sigma}^{-2i},i=1,2,\dots $ until ${\theta}_{i}>{\vartheta}_{0}.$ Further, we can choose

*K*from $|{\theta}_{K}-{\vartheta}_{0}|={\mathrm{min}}_{i}|{\theta}_{i}-{\vartheta}_{0}|$ and then redefine ${\vartheta}_{0}={\theta}_{K}.$ For low resolution it might be necessary to replace

*K*by a smaller value in order to get a reasonable number of parallels in the segment ${S}_{K}^{d}.$ Since ${n}_{1}=n$ is known we can use ${n}_{i+1}=(q-1){n}_{i}/q,\text{where}i=1,\dots ,K$-1, and then define $\Delta {\lambda}_{i}=2\pi /{n}_{i},i=2,\dots ,K.$

The above works only if *n* is divisible by ${q}^{K-1},$ where *K* has our desired value, in which case the number of sequences of interpolation coefficients required is only *q*−1, provided symmetry is used to reduce the number of sequences whenever possible.

If we get a number ${n}_{{i}_{0}},$ with ${i}_{0}<K,$ not divisible by *q*, then $\lambda =2\pi $ will not correspond to grid points in ${S}_{{i}_{0}+1}^{d}.$ Since we now cannot have equidistant grid points in all our discretisations, we switch to a modification of method II, which allows that. From segment ${S}_{{i}_{0}+1}^{d}$ onward, we define ${n}_{i+1}=(q-1){n}_{i}/q,$ for $i={i}_{0},\dots ,K$ and then round them to integers and define $\Delta {\lambda}_{i+1}=2\pi /{n}_{i+1},$ for $i={i}_{0},\dots ,K.$ This transition to method I is very simple but requires more sequences of interpolation coefficients.

For high resolution, we indicate an improvement of the above modification of method II. If ${n}_{{i}_{0}+1}$ is rounded to an integer divisible by *q*, then the interpolation between ${S}_{{i}_{0}+1}^{d}$ and ${S}_{{i}_{0}+2}^{d}$ can be done with the *q*−1 interpolation formulas. We still use method I for the interpolation between ${S}_{{i}_{0}}^{d}$ and ${S}_{{i}_{0}+1}^{d}.$ This can be repeated by choosing ${n}_{{i}_{0}+3}$ divisible by *q*, using method I between ${S}_{{i}_{0}+2}^{d}$ and ${S}_{{i}_{0}+3}^{d},$ and then the *q*−1 interpolation formulas between ${S}_{{i}_{0}+3}^{d}$ and ${S}_{{i}_{0}+4}^{d},$ etc.

We conclude this subsection by considering an example with *q* = 6, which preliminarily gives $\sigma =\sqrt{6/5}=1.0954.$ We have ${\vartheta}_{0}=55.7$ and the following sequence of latitudes determining the segments: 33.6, 46.0, 54.6, 61.2, 66.3, 70.4, 73.8, 76.6, 78.8, 80.7. Thus according to the above we choose *K* = 3, redefine ${\vartheta}_{0}={\theta}_{3},$ and obtain a new $\sigma =2/(1+\hspace{0.17em}\text{sin}\hspace{0.17em}{\theta}_{3})=1.1019.$ If n is divisible by 6^{2}, then method II works perfectly well for *K* = 3. However, if we want *K* > 3 and *n* is not divisible by 6^{3}, we can use a modification as described above for the segments following ${S}_{3}^{d}.$

### Comparison between two measures of uniformity

The measure of uniformity most commonly referred to in the literature is the ratio of maximum to minimum grid length, which we call *γ* in this section. Our main interest here is to investigate which measure of uniformity is best suited for grid generation. Our maximal deviation factor has already been used for this purpose, and we therefore now turn our focus to the ratio *γ* by studying two examples.

*Example* (i): Let *S ^{d}* be a segment on the northern hemisphere bounded by the latitudes ${\theta}_{1}<{\theta}_{2}$ and consisting of a lat-lon net with the longitudinal step $\Delta \lambda .$ We define

*σ*as the deviation factor for net rectangles at

*θ*

_{1}, that is $\sigma =\Delta \lambda \hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}_{1}/\Delta \theta ,$ where $\Delta \theta $ is the latitudinal step, not yet determined. The ratio of maximum to minimum grid length on

*S*is

^{d}The minimum of *γ* is $\text{cos}\hspace{0.17em}{\theta}_{1}/\hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}_{2},$ which is attained for all $\sigma \le \hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}_{1}/\hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}_{2}.$ The result is unsatisfactory since we want the grid to be uniquely defined.

For comparison we mention that the minimum of the maximal deviation factor for this segment is $\sqrt{\hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}_{1}/\hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}_{2}},$ which is attained if and only if $\Delta \lambda /\Delta \theta =1/\sqrt{\hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}_{1}\hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}_{2}}.$ We get square net rectangles at the latitude *θ* for $\text{cos}\hspace{0.17em}\theta \Delta \lambda =\Delta \theta ,$ which implies

This formula will be used in the next Section 3.4. ⊗

*Example* (ii): In this example the ratio *γ* will be minimised over the whole sphere. We choose the E-P grid system with *K* = 1, which we optimised in (S-E-P) by using the maximal deviation factor. Now instead we minimise *γ*. Let the equatorial grid cover the band $\left|\theta \right|\le {\vartheta}_{0},$ which will be determined later. Our northern polar grid will go down to ${\vartheta}_{0}$ and the corresponding map factor is ${m}_{f}=2/(1+\hspace{0.17em}\text{sin}\hspace{0.17em}{\vartheta}_{0}).$ According to (12) in (S-E-P) the greatest and smallest grid lengths in our polar grids are $\Delta \theta $ and $\Delta \theta /{m}_{f}=\Delta \theta h({\vartheta}_{0}),$ respectively, where $h({\vartheta}_{0})=(1+\hspace{0.17em}\text{sin}\hspace{0.17em}{\vartheta}_{0})/2.$ For our polar grids the ratio *γ* and the maximal deviation factor are the same.

The ratio *γ* for the whole sphere can now be written as

where $\sigma =\Delta \lambda /\Delta \theta .$ We now consider the equation $h({\vartheta}_{0})/(\sigma \hspace{0.17em}\text{cos}\hspace{0.17em}{\vartheta}_{0})=1,$ with a unique root ${\theta}^{*}(\sigma )$ in the interval $(0\pi /2).$ Elementary computations show that

We look at two cases, namely

In both cases $\gamma (\sigma ,{\vartheta}_{0})\ge 1/\hspace{0.17em}\text{cos}\hspace{0.17em}{\theta}^{*}(1)=1.25,$ with equality if and only if *σ* = 1 and ${\vartheta}_{0}={\theta}^{*}(1)\approx {36.87}^{o}.$ This result was also reported in (S-E-P) but without mentioning the condition *σ* = 1, which we regret.

The sole reason why lat-lon coordinates are not suitable for the whole sphere is the convergence of meridians when we are moving towards a pole. Therefore, we find it inappropriate to use square net rectangles at the equator instead of rectangles with longer longitudinal than latitudinal sides. ⊗

The examples (i) and (ii) above convincingly show that the maximal deviation factor is a better tool for generation of suitable grid systems on the sphere, than the ratio of maximum to minimum grid length.

### Square net rectangles at mid-latitudes

Grids for NWP are generally constructed to be uniform (having square net rectangles) at mid-latitudes, $\theta =\pm \pi /4,$ a condition we will study in this section. We will also compare the total number of grid points used in the Yin-Yang grids and ours, both with the same number of grid points on the equator, and by considering the mid-latitude condition above.

We first use method I of Section 3.1 to determine the segment ${S}_{{i}_{0}}^{d}$ with ${\theta}_{{i}_{0}-1}<\pi /4<{\theta}_{{i}_{0}}$ and then use (9) with $\theta =\pi /4,$ which leads to the equation

For our ’mid-latitude method’ we use notation with bars to distinguish the variables from those used for methods I and II. In order to avoid over-determined systems of equations we replace equation (8) by (12) and use the left part of (7) to get $\text{cos}\hspace{0.17em}{\overline{\theta}}_{{i}_{0}}={\overline{\sigma}}^{-2{i}_{0}},$ which together with (12) gives ${\overline{\sigma}}^{-4{i}_{0}+2}=1/2.$ We then determine $\overline{\sigma}$ and ${\overline{\theta}}_{i},$$i=1,\dots ,K,$ by solving the equations

We conclude this subsection with an example, in Table 2, where two reduced lat-lon grids are considered. Choose *n* = 3600 and *K* = 10 in method I, which corresponds to $\Delta \lambda ={0.1}^{o}$ on the equator and about 11 km between neibouring grid points everywhere on the sphere.

For the Yin-Yang grid we let the Yin subgrid have square net rectangles at $\theta =\pm {45}^{o}.$ If the Yang grid is congruent with the Yin grid the total number of grid points will be $(2\xb7\sqrt{2}\xb73/16){n}^{2},$ which for *n* = 3600 is about $6.873\xb7{10}^{6}.$ This grid system only satisfies the mid-latitude condition in a crude sense. By replacing this grid by one of ours in Table 2 we get a reduction in the number of grid point of about 34%. Moreover, we get good rotational symmetry properties relative to the axis of the Earth, much better uniformity, and perfect possibilities to satisfy the mid-latitude condition in suitable ways.

Provided we accept less uniformity than in Table 2, a smaller number of segments can be used, e.g. *K* = 3 or 5. If we also want the reduced grid to reach high latitudes it can be complemented by additional segments by the procedure described at the end of Section 3.1.

For a full lat-lon grid, satisfying the mid-latitude condition and with *n* = 3600, the total number of grid points is about $9.164\xb7{10}^{6}.$

## Numerical experiments

In this section, we investigate the E-P grid system numerically, both with and without reductions in the equatorial grid. Test examples no. 1 and 5 from Williamson et al. (**1992**) and time dependent flow from Läuter et al. (**2005**) are considered, cf. also (S-E-P) where other numerical examples and investigations, such as grid imprinting, are studied. We recall that the number of segments in the equatorial grid is 2 *K*-1, that the total number of grids in the E-P system is 2 *K* + 1, and that *K* = 1 corresponds to the grid system used in (S-E-P). Method I, intended for reduction and connection between segments, has been used in all the tables below. However, in Sections 4.3 and 4.4 we give some short comparisons between methods I and II.

The spatial discretisation is obtained by using centred finite difference approximation of orders 6 or 4 on non-staggered grids, for which formulas can be found in Section 2.4 of (S-E-P). The classical explicit fourth order Runge-Kutta method is used for the time integration, which requires interpolation between grids for each of the four stages in a time step.

Explicit time integration seems to work quite well for the shallow water equations. However, for realistic NWP, 3d models are used and with vertical spacing much smaller than the horizontal ones, which would lead to very small time steps for explicit methods. This is why HEVI(horizontal explicit and vertical implicit) schemes are of interest in the atmospheric community.

In the tables below, 2*p* is the approximation order of the spatial discretisations of the underlying differential equations. The order of the interpolation formulas connecting the polar and equatorial grids is 2*p* + 1, and between discretised segments the order used is 2*p* + 2. The overlapping number is denoted by $s(=p),$ cf. Section 3.3 in (S-E-P).

The geopotential $\Psi $ is defined as $gH,$ where *g* is the acceleration of gravity and *H* the height of the fluid. We will often use the relative error norm ${\mathcal{\ell}}_{2}(H),$ introduced in Williamson et al. (**1992**). Let ${\mathcal{\ell}}_{2}(H,d)$ denote this norm after *d* days. For the vector $({\mathcal{\ell}}_{2}(H,1),{\mathcal{\ell}}_{2}(H,2),\dots ,{\mathcal{\ell}}_{2}(H,T)),$ where *T* is the integration time in days, we define a mean value by

The global conservation properties for mass and energy will also be studied below. The integral formulas can be found, e.g. in Starius (2014) and their numerical computation is described in (S-E-P). The relative errors for the total mass after each day are stored in the vector $({r}_{m}(1),{r}_{m}(2),\dots ,{r}_{m}(T)),$ with mean value ${\overline{r}}_{m}(T),$ defined by (14). The quantity ${\overline{r}}_{e}(T)$ for the total energy is defined analogously.

### Smoothing

Smoothing is essential for the centred finite difference methods to work properly and will be achieved by adding a so called ‘hyper-diffusion’ term to each equation. Since ‘hyper-diffusion’ has no known physical meaning, we consider our smoothing a purely numerical stabilisation process.

Let *L _{h}* be the five-point operator associated with minus the Laplacian $-{\nabla}^{2},$ and defined by

To the first, second, and third equation in (2), we add the terms $-c{L}_{h}^{p}u,-c{L}_{h}^{p}v,$ and $-c{L}_{h}^{p}\Psi ,$ respectively. In the equations for the polar grids, *U* and *V* are used instead of *u* and *v*. Since our grid systems are almost uniform, it is natural to use *L _{h}* for the whole sphere. We observe that ${L}_{h}^{p}\Psi =O(\Delta {\theta}^{2p}),$ for any smooth function $\Psi .$ In the temporal discretisations the smoothing terms will be multiplied by $\Delta t.$ The smoothing constant $c\ge 0$ will often be determined by minimising ${\mathcal{\ell}}_{2}(H,T),$${\overline{\mathcal{\ell}}}_{2}(H,T),{\overline{r}}_{m}(T)$ or ${\overline{r}}_{e}(T).$ We have used the MATLAB

^{®}routine

*fminbnd*, for the numerical minimisation.

In an earlier work we have used *L _{h}* as a five-point difference approximation to minus the Laplacian in spherical coordinates, without any improvement for almost uniform grids.

We point out that the optimisations in this paper, are essential in order to ease comparisons between different methods.

### Rotation of the Cosine bell

In this example we consider a solid body rotation of the Cosine bell, according to test problem no. 1 from Williamson et al. (**1992**). The advecting wind is given by

*α*is the angle between the axis of the solid body rotation and the polar axis, and ${u}_{0}=2\pi a/12$ m/day.

The E-P grid system will be used for *K* equal to 1 and 3 and the smoothing parameter *c* will be determined by minimising ${\mathcal{\ell}}_{2}(H,12),$${\overline{r}}_{m}(12)$ and ${\overline{r}}_{e}(12).$ The results are given in Table 3, first for $2p=6$ and then for $2p=4.$

Despite the solution having discontinuous second order derivatives, the accuracy of *H* is considerably higher for the case $2p=6$ than for $2p=4.$ The actual approximation orders can still be fairly equal. The accuracy for the total mass must be caused by cancellation of errors since it is much higher than for *H*. In this specific example, the same can be said about the total energy. Minimisation of ${\mathcal{\ell}}_{2}(H,12)$ leads to slightly more accurate values of *H*, for *K* = 1 than for *K* = 3, but the values of ${\overline{r}}_{m}(12)$ are much smaller for the smoother case *K* = 3, which also require fewer grid points.

For the rest of this subsection we only consider the most important case $2p=6.$ The minimisation of ${\overline{r}}_{m}(12)$ leads to much greater values of *c* than for the other alternatives, which results in greater values for ${\mathcal{\ell}}_{2}(H,12)$ and ${\overline{r}}_{e}(12),$ see for example the case *K* = 1. For this reason we reject the use of ${\overline{r}}_{m}(12)$ for the determination of *c* and note that ${\overline{r}}_{e}(12)$ works better for this example if we focus on the other errors ${\mathcal{\ell}}_{2}(H,12)$ and ${\overline{r}}_{m}(12)$ and not on the values of *c* themselves, which are much smaller compared to the ones corresponding to ${\mathcal{\ell}}_{2}(H,12).$

### Time dependent flow, the Läuter example

The following time dependent flow is a solution of the shallow water equations and was introduced in Läuter et al. (**2005**), cf. also Pudykiewics (**2011**),

**1972**) it is shown, for a simple periodic advection model, that the discretisation error increases linearly in the number of time periods. This behaviour in time of the discretisation error is the best we can hope to achieve.

We make some comments concerning Table 4. For order $2p=6$ the errors decrease somewhat from the case $\Delta t=300$ to 200. This indicates that there is no real cancellation between the spatial and temporal local discretisation errors. For order $2p=4$ there seems to be cancellation, and more so for $\Delta t=300$ than for $\Delta t=200.$ For $2p=6$ the accuracy obtained for *K* = 1,2,3,4 is very much the same, particularly for $\Delta t=300.$ For each case the error grows very close to linearly in the number of days.

The third row of Table 4 will be $(300,3,12.3,6,2.1010{e}^{-9},4.1408{e}^{-9},6.2201{e}^{-9}),$ if method II is used instead of method I. For this very smooth example there is no real difference in accuracy between the two methods.

In Table 5, ${\overline{r}}_{e}(15)$ is minimised in order to investigate whether it may be used instead of ${\overline{\mathcal{\ell}}}_{2}({\Psi}^{*},15),$ since the latter quantity is not easily available for realistic NWP. The values of *c* in the second to fourth rows in Table 5 are much smaller than those in Table 4, but the corresponding errors do not differ very much, except for the two cases *K* = 3, 4 and T = 15 days. However, the minimisation of ${\overline{r}}_{e}(15)$ might still give some insight in certain situations. In the next section, we will look at another way to determine values of *c*.

The solutions (15) are very smooth and have very small variation, which explains the high accuracy for the geopotential, and for the total mass and energy cancellation of errors has further increased the accuracy, see Table 5.

### Zonal flow over an isolated mountain

Test problem no. 5 in Williamson et al. (**1992**) is concerned with zonal flow impinging on a mountain on the sphere, with a circular base. The centre of the base is denoted by $({\lambda}_{c},{\theta}_{c})$ and the initial conditions are

*H*are depicted in Fig. 2.

It is fairly easy to experimentally determine a ’stability interval’

*c*guarantees that there is enough smoothing for stability and

_{min}*c*that we stay inside the stability region of the time integrator, in the left part of the complex plane. We observe that for implicit methods

_{max}*c*can be infinite. For the present example we can choose ${c}_{\mathit{min}}=0.1\times {10}^{-6}$ and ${c}_{\mathit{max}}=18\times {10}^{-6}$ for $2p=6,$ and ${c}_{\mathit{min}}=0.5\times {10}^{-6}$ and ${c}_{\mathit{max}}=140\times {10}^{-6}$ for $2p=4.$

_{max}In Table 6, the conservation properties are about the same for $2p=6$ and $2p=4,$ which is natural since they are caused by cancellation of errors in the height of the fluid rather than by accuracy. We recall that q is the number of longitudinal mesh intervals that is replaced by q−1 intervals in the following segment, cf. Section 3.2. Only q−1 interpolation formulas are required and repeated periodically. This can be seen as a more regular way to interpolate between segments than the one of method I, which has resulted in greater accuracy for the total mass. The values of *c* in Table 6 have been obtained by using some tests.

In order to further investigate the reliability of our Equator-Pole grid systems, we have integrated the mountain problem for 5 years, using methods of order 6. In Table 7, the maximal relative errors in magnitude of the total mass appear in the fourth column and the corresponding quantity for the total energy in the last one, both after 5 years. The values of *c* are taken from Table 6.

## Summary

The Equator-Pole grid system introduced in (S-E-P), for the solution of the shallow water equations on the sphere, consists of one equatorial and two polar grids. Here we generalise this by permitting the equatorial grid to be reduced, that is divided into segments. We give two methods of reduction, called method I and method II, in Sections 3.1 and 3.2, respectively. The reduction technique seems to work quite well, as can easiest be seen in Table 4.

By using reductions the total number of grid points on the sphere can be decreased by 20% or more, and for high resolution also the computing time by a similar percentage. The change in accuracy for the height of the fluid is negligible, and for the total mass the accuracy is increasing with increased uniformity of the grid system, cf. Table 3. High uniformity might have additional advantages, for example in conjunction with comprehensive wave propagation. The different wave speeds computed will, among other things, depend on the uniformity of the grid system used and its resolution. Low uniformity or resolution might lead to interaction between waves with no analogue in the continuous model.

We have demonstrated high accuracy in the total mass for fairly simple problems, both with and without smooth solutions. For realistic NWP models the situation can be more complicated, e.g. water can contribute to the atmosphere’s mass and give rise to far less smooth problems than those considered here. We mention that Allen and Zerroukat (2015) have derived a two-dimensional generalisation of the shallow water equations, which includes moist.

We use high order centred finite difference approximations of first order spatial derivatives, in the shallow water equations. This requires only a fraction of the work per grid point compared with some other methods of the same order. This fraction decreases rapidly with the order of approximation. Further, one can very easily increase the order of approximation by increasing the order of approximation for first order derivatives. For methods of order 4, 6, 8 and 10 the corresponding spatial stencils contain only 9, 13, 17 and 21 grid points, respectively. The higher the order of the spatial approximation, up to a bound depending on the resolution, the better treatment of fronts in the solutions, see for instance Table 2 in (S-E-P). For the time integration, we have used the explicit fourth order Runge-Kutta method.

The Equator-Pole grids presented here only focus on uniformity, except in Section 3.4, and are mainly intended to be basic grid systems. To make them more flexible, for instance when taking jet streams and orography into account, they need to be modified, perhaps by using overlapping techniques.