the Creative Commons Attribution 4.0 License.
the Creative Commons Attribution 4.0 License.
Parallelizing a serial code: open–source module, EZ Parallel 1.0, and geophysics examples
Jason Louis Turner
Samuel N. Stechmann
Abstract. Parallel computing can offer substantial speedup of numerical simulations in comparison to serial computing, as parallel computing uses many processors simultaneously rather than a single processor. However, it typically also requires substantial time and effort to convert a serial code into a parallel code. Here, a new module is developed to reduce the time and effort required to parallelize a serial code. The tested version of the module is written in the Fortran programming language,while the framework could also be extended to other languages (C++, Python, Julia, etc.). The Message Passing Interface is used to allow for either shared-memory or distributed-memory computer architectures. The software is designed for solving partial differential equations on a rectangular two-dimensional or three-dimensional domain, using finite difference, finite volume, pseudo-spectral, or other similar numerical methods. Examples are provided for two idealized models of atmospheric and oceanic fluid dynamics: the two-level quasi-geostrophic equations, and the stochastic heat equation as a model for turbulent advection–diffusion of either water vapor and clouds or sea surface height variability. In tests of the parallelized code, the strong scaling efficiency for the finite difference code is seen to be roughly 80 % to 90 %, which is achieved by adding roughly only 10 new lines to the serial code. Therefore, EZ Parallel provides great benefits with minimal additional effort.
- Preprint
(4163 KB) - Metadata XML
- BibTeX
- EndNote
Jason Louis Turner and Samuel N. Stechmann


-
SC1: 'executive editor comment on gmd-2020-257', Astrid Kerkweg, 14 Nov 2020
-
AC1: 'On the Inclusion of a DOI to a Persistent Archive of Project Source Code and Plotting Scripts', Jason Turner, 23 Nov 2020
-
RC1: 'Review', Anonymous Referee #1, 02 Dec 2020
-
AC2: 'Response to Anonymous Referee 1', Jason Torchinsky, 08 Jan 2021
-
AC2: 'Response to Anonymous Referee 1', Jason Torchinsky, 08 Jan 2021
-
RC1: 'Review', Anonymous Referee #1, 02 Dec 2020
-
AC1: 'On the Inclusion of a DOI to a Persistent Archive of Project Source Code and Plotting Scripts', Jason Turner, 23 Nov 2020
-
RC2: 'Review', Anonymous Referee #2, 23 Dec 2020
-
AC3: 'Response to Anonymous Referee 2', Jason Torchinsky, 08 Jan 2021
-
AC3: 'Response to Anonymous Referee 2', Jason Torchinsky, 08 Jan 2021


-
SC1: 'executive editor comment on gmd-2020-257', Astrid Kerkweg, 14 Nov 2020
-
AC1: 'On the Inclusion of a DOI to a Persistent Archive of Project Source Code and Plotting Scripts', Jason Turner, 23 Nov 2020
-
RC1: 'Review', Anonymous Referee #1, 02 Dec 2020
-
AC2: 'Response to Anonymous Referee 1', Jason Torchinsky, 08 Jan 2021
-
AC2: 'Response to Anonymous Referee 1', Jason Torchinsky, 08 Jan 2021
-
RC1: 'Review', Anonymous Referee #1, 02 Dec 2020
-
AC1: 'On the Inclusion of a DOI to a Persistent Archive of Project Source Code and Plotting Scripts', Jason Turner, 23 Nov 2020
-
RC2: 'Review', Anonymous Referee #2, 23 Dec 2020
-
AC3: 'Response to Anonymous Referee 2', Jason Torchinsky, 08 Jan 2021
-
AC3: 'Response to Anonymous Referee 2', Jason Torchinsky, 08 Jan 2021
Jason Louis Turner and Samuel N. Stechmann
Model code and software
EZ Parallel 1.0 Jason L. Turner and Samuel Stechmann https://doi.org/10.5281/zenodo.4107203
Jason Louis Turner and Samuel N. Stechmann
Viewed
HTML | XML | Total | BibTeX | EndNote | |
---|---|---|---|---|---|
643 | 228 | 27 | 898 | 18 | 16 |
- HTML: 643
- PDF: 228
- XML: 27
- Total: 898
- BibTeX: 18
- EndNote: 16
Viewed (geographical distribution)
Country | # | Views | % |
---|
Total: | 0 |
HTML: | 0 |
PDF: | 0 |
XML: | 0 |
- 1