Software Open Access

Software for: A micro/macro parallel-in-time (parareal) algorithm applied to a climate model with discontinuous non-monotone coefficients and oscillatory forcing

Samaey, Giovanni; Slawig, Thomas

We present the application of a micro/macro parareal algorithm for a 1-D energy balance climate model with discontinuous and non-monotone coefficients and forcing terms. The micro/macro parareal method uses a coarse propagator, based on a (macro- scopic) 0-D approximation of the underlying (microscopic) 1-D model. We compare the performance of the method using different versions of the macro model, as well as differ- ent numerical schemes for the micro propagator, namely an explicit Euler method with constant stepsize and an adaptive library routine. We study convergence of the method and the theoretical gain in computational time in a realization on parallel processors. We show that, in this example and for all settings, the micro/macro parareal method converges in fewer iterations than the number of used parareal subintervals, and that a theoretical gain in performance of up to 10 is possible.

This set includes all software to produce the results in the paper. Language: python.

Files (27.9 kB)
Name Size
parareal_climate_code.zip
md5:b7a4e0069bed38829efe55682222f395
27.9 kB Download
28
0
views
downloads
All versions This version
Views 2822
Downloads 00
Data volume 0 Bytes0 Bytes
Unique views 2118
Unique downloads 00

Share

Cite as