Preprints
https://doi.org/10.5194/egusphere-2025-2109
https://doi.org/10.5194/egusphere-2025-2109
07 Jul 2025
 | 07 Jul 2025

Handling discontinuities in numerical ODE methods for Lagrangian oceanography

Jenny Margareta Mørk, Tor Nordam, and Siren Rühs

Abstract. In Lagrangian oceanography, numerical methods for Ordinary Differential Equations (ODEs) are used to model particle transport. In many common applications, the velocity field driving the particle transport is provided as output from ocean models, on a discrete grid of points. Hence, the velocity field must be interpolated. Depending on the choice of interpolation, the velocity field or its derivatives may have discontinuities. These discontinuities have implications for the accuracy of the numerical ODE methods employed.

We demonstrate that by using information about the location of the discontinuities, we can take these into account, and improve numerical accuracy over standard integration methods that do not take discontinuities into account. The commonly used combination of the fourth-order Runge-Kutta method and linear interpolation of the velocity field, in fact, only yields second-order accuracy with the standard method. By accounting for discontinuities, we can achieve several orders of magnitude better accuracy with the same timestep. The implementation makes use of a combination of known methods from the field of numerical integration of ODEs. The implementation is quite flexible, agnostic to grid layout and order of interpolation, and contributes only modestly to the code complexity. Hence, the proposed technique for handling discontinuities in interpolated velocity fields could easily be adopted to a range of applications where numerical accuracy or efficiency is of importance.

As an example where numerical accuracy is important, we run a back-tracking case for particles with known initial conditions, and show that the method with discontinuity handling is to a larger degree able to recover the correct initial positions of the particles, compared to standard fourth-order Runge-Kutta.

Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims made in the text, published maps, institutional affiliations, or any other geographical representation in this paper. While Copernicus Publications makes every effort to include appropriate place names, the final responsibility lies with the authors. Views expressed in the text are those of the authors and do not necessarily reflect the views of the publisher.
Share

Journal article(s) based on this preprint

27 Oct 2025
Handling discontinuities in numerical ODE methods for Lagrangian oceanography
Jenny M. Mørk, Tor Nordam, and Siren Rühs
Geosci. Model Dev., 18, 7831–7851, https://doi.org/10.5194/gmd-18-7831-2025,https://doi.org/10.5194/gmd-18-7831-2025, 2025
Short summary
Jenny Margareta Mørk, Tor Nordam, and Siren Rühs

Interactive discussion

Status: closed

Comment types: AC – author | RC – referee | CC – community | EC – editor | CEC – chief editor | : Report abuse
  • RC1: 'Comment on egusphere-2025-2109', Anonymous Referee #1, 06 Aug 2025
  • RC2: 'Comment on egusphere-2025-2109', Willi Rath, 15 Aug 2025
  • AC1: 'Comment on egusphere-2025-2109', Jenny Mørk, 05 Sep 2025

Interactive discussion

Status: closed

Comment types: AC – author | RC – referee | CC – community | EC – editor | CEC – chief editor | : Report abuse
  • RC1: 'Comment on egusphere-2025-2109', Anonymous Referee #1, 06 Aug 2025
  • RC2: 'Comment on egusphere-2025-2109', Willi Rath, 15 Aug 2025
  • AC1: 'Comment on egusphere-2025-2109', Jenny Mørk, 05 Sep 2025

Peer review completion

AR: Author's response | RR: Referee report | ED: Editor decision | EF: Editorial file upload
AR by Jenny Mørk on behalf of the Authors (05 Sep 2025)  Author's response   Author's tracked changes   Manuscript 
ED: Referee Nomination & Report Request started (06 Sep 2025) by Sylwester Arabas
RR by Willi Rath (07 Sep 2025)
ED: Publish as is (20 Sep 2025) by Sylwester Arabas
AR by Jenny Mørk on behalf of the Authors (22 Sep 2025)

Journal article(s) based on this preprint

27 Oct 2025
Handling discontinuities in numerical ODE methods for Lagrangian oceanography
Jenny M. Mørk, Tor Nordam, and Siren Rühs
Geosci. Model Dev., 18, 7831–7851, https://doi.org/10.5194/gmd-18-7831-2025,https://doi.org/10.5194/gmd-18-7831-2025, 2025
Short summary
Jenny Margareta Mørk, Tor Nordam, and Siren Rühs
Jenny Margareta Mørk, Tor Nordam, and Siren Rühs

Viewed

Total article views: 2,012 (including HTML, PDF, and XML)
HTML PDF XML Total BibTeX EndNote
1,919 76 17 2,012 21 36
  • HTML: 1,919
  • PDF: 76
  • XML: 17
  • Total: 2,012
  • BibTeX: 21
  • EndNote: 36
Views and downloads (calculated since 07 Jul 2025)
Cumulative views and downloads (calculated since 07 Jul 2025)

Viewed (geographical distribution)

Total article views: 1,897 (including HTML, PDF, and XML) Thereof 1,897 with geography defined and 0 with unknown origin.
Country # Views %
  • 1
1
 
 
 
 
Latest update: 27 Oct 2025
Download

The requested preprint has a corresponding peer-reviewed final revised paper. You are encouraged to refer to the final revised version.

Short summary
A common task in applied oceanography is to calculate the trajectories of floating objects in the ocean. We propose an alteration to some common numerical methods to improve their performance in such computations, and compare results with and without this alteration. This will help researchers to ensure they obtain a higher accuracy in their results without compromising on computer resources.
Share