{'fraction_non_alphanumeric': 0.02033492822966507, 'fraction_numerical': 0.0, 'mean_word_length': 5.745967741935484, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A conservative adaptive wavelet method for the shallow‐water equations on staggered grids

This article presents the first dynamically adaptive wavelet method for the shallow‐water equations (SWEs) on a staggered hexagonal C‐grid. Pressure is located at the centres of the primal grid (hexagons) and velocity is located at the edges of the dual grid (triangles). Distinct bi‐orthogonal second‐generation wavelet transforms are developed for the pressure and the velocity. These wavelet transforms are based on second‐order accurate interpolation and restriction operators. Together with compatible restriction operators for the mass flux and Bernoulli function, they ensure that mass is conserved and that there is no numerical generation of vorticity when solving the SWEs. Grid refinement relies on appropriate thresholding of the wavelet coefficients, allowing error control in both the quasi‐geostrophic and inertia–gravity wave regimes. The SWEs are discretized on the dynamically adapted multiscale grid using a mass and potential‐enstrophy‐conserving finite‐difference scheme. The conservation and error control properties of the method are verified by applying it to a propagating inertia–gravity wave packet and to rotating shallow‐water turbulence. Significant savings in the number of degrees of freedom are achieved even in the case of rotating shallow‐water turbulence. The numerical dissipation introduced by the grid adaptation is quantified. The method has been designed so it can be extended easily to the icosahedral subdivision of the sphere. This work provides important building blocks for the development of fully adaptive general circulation models.