ArticleslgStudy

computer science

Parareal

Parareal is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Parareal rather than just read about it. In short: Parareal is a parallel algorithm from numerical analysis and used for the solution of initial value problems. It was introduced in 2001 by Lions, Maday and Turinici.

Parareal — main illustration
Parareal — illustration

Key takeaways

  • Parareal belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Parareal to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Parareal from memory before moving on to harder problems.

Reference excerpt

Parareal is a parallel algorithm from numerical analysis and used for the solution of initial value problems. It was introduced in 2001 by Lions, Maday and Turinici. Since then, it has become one of the most widely studied parallel-in-time integration methods.

Parallel-in-time integration methods In contrast to e.g. Runge-Kutta or multi-step methods, some of the computations in Parareal can be performed in parallel and Parareal is therefore one example of a parallel-in-time integration method. While historically most efforts to parallelize the numerical solution of partial differential equations focused on the spatial discretization, in view of the challenges from exascale computing, parallel methods for temporal discretization have been identified as a possible way to increase concurrency in numerical software. Because Parareal computes the numerical solution for multiple time steps in parallel, it is categorized as a parallel across the steps method. This is in contrast to approaches using parallelism across the method like parallel Runge-Kutta or extrapolation methods, where independent stages can be computed in parallel or parallel across the system methods like waveform relaxation.

History Parareal can be derived as both a multigrid method in time method or as multiple shooting along the time axis. Both ideas, multigrid in time as well as adopting multiple shooting for time integration, go back to the 1980s and 1990s. Parareal is a widely studied method and has been used and modified for a range of different applications. Ideas to parallelize the solution of initial value problems go back even further: the first paper proposing a parallel-in-time integration method appeared in 1964.

Algorithm

The Problem The goal is to solve an initial value problem of the form dudt=f(t,u)overt∈[t0,T]withu(t0)=u0. The right hand side f is assumed to be a smooth (possibly nonlinear) function. It can also correspond to the spatial discretization of a partial differential equation in a method of lines approach. We wish to solve this problem on a temporal mesh of N+1 equally spaced points (t0,t1,…,tN), where tj+1=tj+ΔT and ΔT=(T−t0)/N. Carrying out this discretisation we obtain a partitioned time interval consisting of time slices [tj,tj+1] for j=0,…,N−1. The objective is to calculate numerical approximations Uj to the exact solution u(tj) using a serial time-stepping method (e.g. Runge-Kutta) that has high numerical accuracy (and therefore high computational cost). We refer to this method as the fine solver ℱ, which propagates an initial value Uj at time tj to a terminal value Uj+1 at time tj+1. The goal is to calculate the solution (with high numerical accuracy) using ℱ such that we obtain Uj+1=ℱ(tj,tj+1,Uj),whereU0=u0. The problem with this (and the reason for attempting to solve in parallel in the first place) solution is that it is computationally infeasible to calculate in real-time.

How it works Instead of using a single processor to solve the initial value problem (as is done with classical time-stepping methods), Parareal makes use of N processors. The aim to is to use N processors to solve N smaller initial value problems (one on each time slice) in parallel. For example, in a MPI based code, N would be the number of processes, while in an OpenMP based code, N would be equal to the number of threads. Parareal makes use of a second time-stepping method to solve this initial value problem in parallel, referred to as the coarse solver 𝒢. The coarse solver works the same way as the fine solver, propagating an initial value over a time interval of length ΔT, however it does so at much lower numerical accuracy than ℱ (and therefore at much lower computational cost). Having a coarse solver that is much less computationally expensive than the fine solver is the key to achieving parallel speed-up with Parareal. Henceforth, we will denote the Parareal solution at time tj and iteration k by Ujk.

Zeroth Iteration Firstly, run the coarse solver serially over the entire time interval [t0,T] to calculate an approximate initial guess to the solution: Uj+10=𝒢(tj,tj+1,Uj0),j=0,…,N−1.

Subsequent Iterations Next, run the fine solver on each of the time slices, in parallel, from the most up-to-date solution values: Uj+11=ℱ(tj,tj+1,Uj0),j=0,…,N−1. Now update the parareal solution values sequentially using the predictor-corrector: Uj+1k=𝒢(tj,tj+1,Ujk)+ℱ(tj,tj+1,Ujk−1)−𝒢(tj,tj+1,Ujk−1),j=0,…,N−1,k=2,3,… At this stage, one can use a stopping criterion to determine whether the solution values are no longer changing each iteration. For example, one may test this by checking if |Ujk−Ujk−1|<ε∀ j≤N, and some tolerance ε>0. If this critertion is not satisfied, subsequent iterations can then be run by applying the fine solver in parallel and then the predictor-corrector. Once the criterion is satisfied, however, the algorithm is said to have converged in k≤N iterations. Note that other stopping criterion do exist and have been successfully tested in Parareal.

Remarks Parareal should reproduce the solution that is obtained by the serial application of the fine solver and will converge in a maximum of N iterations. For Parareal to provide speedup, however, it has to converge in a number of iterations significantly smaller than the number of time slices, i.e. k≪N. In the Parareal iteration, the computationally expensive evaluation of ℱ(tj,tj+1,Ujk−1) can be performed in parallel on N processing units. By contrast, the dependency of Uj+1k on 𝒢(tj,tj+1,Ujk) means that the coarse correction has to be computed in serial order. Typically, some form of Runge-Kutta method is chosen for both coarse and fine integrator, where 𝒢 might be of lower order and use a larger time step than ℱ. If the initial value problem stems from the discretization of a PDE, 𝒢 can also use a coarser spatial discretization, but this can negatively impact convergence unless high order interpolation is used.

… excerpt ends here. Continue reading the full article.

Illustrations

Parareal: Illustration of the first iteration in Parareal (adapted from the original version[2]).
Illustration of the first iteration in Parareal (adapted from the original version[2]).

Worked examples

Example 1 — a first encounter with Parareal

Start with the simplest possible case. Write down what Parareal claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Parareal before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Parareal ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Parareal

In research
Parareal appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Parareal in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Parareal is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational science, Numerical analysis, Numerical differential equations, so understanding it makes those chapters shorter.
In everyday life
Look for Parareal outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Parareal” →

How to study Parareal in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Parareal means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Parareal out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Parareal in simple terms?

Parareal is a parallel algorithm from numerical analysis and used for the solution of initial value problems. It was introduced in 2001 by Lions, Maday and Turinici.

Why does Parareal matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Parareal?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Parareal.

Tags

  • Computational science
  • Numerical analysis
  • Numerical differential equations
  • Parallel computing

Keep exploring