Theoretical Time Evolution of Numerical Errors When Using Floating Point Numbers in Shallow‐Water Models
Abstract We carried out a theoretical investigation of the impact of the numerical errors caused by using floating point numbers (FPNs) in simulations, such as rounding errors. Under the presupposition that model variables can be written as the linear sum of the true value and the numerical error, e...
Main Authors: | , , |
---|---|
Format: | Article |
Language: | English |
Published: |
American Geophysical Union (AGU)
2019-10-01
|
Series: | Journal of Advances in Modeling Earth Systems |
Subjects: | |
Online Access: | https://doi.org/10.1029/2019MS001615 |
id |
doaj-284a1cbc86d447ab81aad923843cb312 |
---|---|
record_format |
Article |
spelling |
doaj-284a1cbc86d447ab81aad923843cb3122020-11-24T21:39:50ZengAmerican Geophysical Union (AGU)Journal of Advances in Modeling Earth Systems1942-24662019-10-0111103235325010.1029/2019MS001615Theoretical Time Evolution of Numerical Errors When Using Floating Point Numbers in Shallow‐Water ModelsTsuyoshi Yamaura0Seiya Nishizawa1Hirofumi Tomita2RIKEN Center for Computational Science JapanRIKEN Center for Computational Science JapanRIKEN Center for Computational Science JapanAbstract We carried out a theoretical investigation of the impact of the numerical errors caused by using floating point numbers (FPNs) in simulations, such as rounding errors. Under the presupposition that model variables can be written as the linear sum of the true value and the numerical error, equations governing the time evolution of numerical errors due to FPNs (FPN errors) are obtained by considering the total errors of the results of simulations of shallow‐water models and estimating the errors incurred by using FPNs with varying precision. We can use the time evolution equations to estimate the behavior of the FPN errors, then confirm these estimations by carrying out numerical simulations. In a geostrophic wind balance state, the FPN error oscillates and gradually increases in proportion to the square root of the number of time steps, like a random walk. We found that the error introduced by using FPNs can be considered as stochastic forcing. In a state of barotropic instability, the FPN error initially evolves as stochastic forcing, as in the case of the geostrophic wind balance state. However, it then begins to increase exponentially, like a barotropic instability wave. These numerical results are obtained by using a staggered‐grid arrangement and stable time‐integration method to retain near‐neutral numerical stability in the simulations. The FPN error tends to behave as theoretically predicted if the numerical stability is close to neutral.https://doi.org/10.1029/2019MS001615numerical errorshallow water equationsgeostrophic wind balancebarotropic instability |
collection |
DOAJ |
language |
English |
format |
Article |
sources |
DOAJ |
author |
Tsuyoshi Yamaura Seiya Nishizawa Hirofumi Tomita |
spellingShingle |
Tsuyoshi Yamaura Seiya Nishizawa Hirofumi Tomita Theoretical Time Evolution of Numerical Errors When Using Floating Point Numbers in Shallow‐Water Models Journal of Advances in Modeling Earth Systems numerical error shallow water equations geostrophic wind balance barotropic instability |
author_facet |
Tsuyoshi Yamaura Seiya Nishizawa Hirofumi Tomita |
author_sort |
Tsuyoshi Yamaura |
title |
Theoretical Time Evolution of Numerical Errors When Using Floating Point Numbers in Shallow‐Water Models |
title_short |
Theoretical Time Evolution of Numerical Errors When Using Floating Point Numbers in Shallow‐Water Models |
title_full |
Theoretical Time Evolution of Numerical Errors When Using Floating Point Numbers in Shallow‐Water Models |
title_fullStr |
Theoretical Time Evolution of Numerical Errors When Using Floating Point Numbers in Shallow‐Water Models |
title_full_unstemmed |
Theoretical Time Evolution of Numerical Errors When Using Floating Point Numbers in Shallow‐Water Models |
title_sort |
theoretical time evolution of numerical errors when using floating point numbers in shallow‐water models |
publisher |
American Geophysical Union (AGU) |
series |
Journal of Advances in Modeling Earth Systems |
issn |
1942-2466 |
publishDate |
2019-10-01 |
description |
Abstract We carried out a theoretical investigation of the impact of the numerical errors caused by using floating point numbers (FPNs) in simulations, such as rounding errors. Under the presupposition that model variables can be written as the linear sum of the true value and the numerical error, equations governing the time evolution of numerical errors due to FPNs (FPN errors) are obtained by considering the total errors of the results of simulations of shallow‐water models and estimating the errors incurred by using FPNs with varying precision. We can use the time evolution equations to estimate the behavior of the FPN errors, then confirm these estimations by carrying out numerical simulations. In a geostrophic wind balance state, the FPN error oscillates and gradually increases in proportion to the square root of the number of time steps, like a random walk. We found that the error introduced by using FPNs can be considered as stochastic forcing. In a state of barotropic instability, the FPN error initially evolves as stochastic forcing, as in the case of the geostrophic wind balance state. However, it then begins to increase exponentially, like a barotropic instability wave. These numerical results are obtained by using a staggered‐grid arrangement and stable time‐integration method to retain near‐neutral numerical stability in the simulations. The FPN error tends to behave as theoretically predicted if the numerical stability is close to neutral. |
topic |
numerical error shallow water equations geostrophic wind balance barotropic instability |
url |
https://doi.org/10.1029/2019MS001615 |
work_keys_str_mv |
AT tsuyoshiyamaura theoreticaltimeevolutionofnumericalerrorswhenusingfloatingpointnumbersinshallowwatermodels AT seiyanishizawa theoreticaltimeevolutionofnumericalerrorswhenusingfloatingpointnumbersinshallowwatermodels AT hirofumitomita theoreticaltimeevolutionofnumericalerrorswhenusingfloatingpointnumbersinshallowwatermodels |
_version_ |
1725929019633827840 |