Publications

Back to Peer-reviewed journal papers

Breakdown Evaluation of Krylov Subspace Methods in Parallel Two-Phase Flow Simulation

Authors
N. Mitsume, K. Kawakami, T. Nemoto, N. Morita†
Published in
JSIAM Letters
Volume, pages
Vol.18, pp.69–72
Year
2026
Type
Peer-reviewed journal papers
Link
https://doi.org/10.14495/jsiaml.18.69
Topics
Large-scale parallel computing Fluid dynamics
Keywords
Breakdown Krylov subspace method Parallel computation Two-phase flow simulation Iterative solver Breakdown avoidance strategy Inner-product reduction Double-double arithmetic Ordered addition Trade-off between robustness and runtime
グラフィカルアブストラクト
グラフィカルアブストラクト

概要

非対称な連立一次方程式の代表的な反復解法として、Krylov 部分空間法の一つである BiCGSTAB 法が広く使われています。反復解法は、メモリの使用量と並列化の効率の点で有利で、分散メモリ型の計算環境で重要な役割を担います。一方、BiCGSTAB 法では、内積がちょうど 0 になって反復を続けられなくなる「ブレイクダウン」が起きることが知られています。特に分散メモリ型の並列計算では、逐次計算では現れないブレイクダウンが起きることがあります。しかし、実際の並列環境で、ブレイクダウンの発生と回避策を、計算時間や並列性能も含めて比べた研究は限られていました。

本論文は、スロッシングなどの現象の解析に使われる 2 相流の並列解析を対象に、ブレイクダウンの発生を調べ、回避策の効果と計算時間のトレードオフを明らかにしています。回避策は、別の解法の選択(BiCGSAFE 法、IDR(s) 法)、重要な演算の高精度化(倍々精度による内積)、内積の数値的な安定化(順序付き加算)の三つに分類し、同じ並列計算の基盤に実装して比べました。比較には、ベンチマークとしての Graves–Morris 問題と、応用としての 2 相流のスロッシング問題を用い、代表的な設定での強スケーリングも示しています。2 相流のスロッシング問題では、標準の BiCGSTAB 法は並列計算でブレイクダウンを起こしましたが、倍々精度の内積を使う BiCGSTAB 法、順序付き加算で安定化した BiCGSTAB 法、IDR(s) 法などは、ブレイクダウンを起こさずに計算を終えました。

重要点

1. 逐次計算では安定な解法でも、並列計算の内積でブレイクダウンが起きうる

BiCGSTAB 法では、内積がちょうど 0 になって反復を続けられなくなるブレイクダウンと、内積が極端に小さくなるニアブレイクダウンが知られています。本論文は前者を対象とし、ニアブレイクダウンは扱っていません。

分散メモリ型の並列計算では、ベクトルの内積を、各プロセスが局所的な内積を計算したうえで、MPI_Allreduce で全体の和をとって求めます。このような並列のリダクションでは、加算の順序が実行環境やハードウェアに依存し、数値的な一貫性に影響することがあります。論文は、分散メモリ型のシステムでの 2 相流解析では、逐次計算で安定な同じ Krylov 部分空間法でも、内積のリダクションが原因でブレイクダウンが現れうると述べています。ベンチマークと応用の両方の数値実験で、逐次計算では安定に見える設定でも、並列化によってブレイクダウンが顕在化しうることを確かめています。

2. 三つの回避策を、同じ並列計算の基盤に実装して比べる

ブレイクダウンの回避策を、次の三つに分類しています。

  • 解法の選択:BiCGSTAB 法の係数の計算で起きる不安定さ(0 や極端に小さい値での割り算など)を和らげる BiCGSAFE 法と、IDR(s) 法(安定化した変種)を使います。IDR(s) 法では、シャドウ空間の基底ベクトルの数 ss で、収束の振る舞いを調整できます。
  • 内積の高精度化:並列計算で生じる丸め誤差を抑えるため、疑似多倍長精度演算の一つである倍々精度(DD)演算を使います。追加の計算コストを抑えるため、DD は内積の計算だけに使い、各プロセスの局所的な内積と、MPI_Allreduce による全体の和の両方に適用します。
  • 内積の数値的な安定化:ブレイクダウンを検出したときだけ、該当する内積 ⟨a,b⟩=∑i=1naibi\langle \boldsymbol{a}, \boldsymbol{b} \rangle = \sum_{i=1}^{n} a_i b_i を次の手順で計算し直します。ここで、aia_i と bib_i はベクトル a\boldsymbol{a} と b\boldsymbol{b} の成分、nn はベクトルの長さです。(a) 各プロセスが、局所的な部分ベクトルを root プロセス(MPI のランク 0)に送ります。(b) root プロセスで、項 aibia_i b_i を絶対値の昇順に並べて足し合わせます(順序付き加算、OA)。(c) 得られた内積の値を、すべてのプロセスに送ります。

BiCG 系の解法では、特に断らない限り、初期残差をシャドウ残差(RS)として使います。この選び方に対するブレイクダウンの感度を調べるため、RS を乱数で生成する変種も試しています(乱数のシードは 0 に固定)。

三つの解法は、MPI とオーバーラップ型の領域分割法で並列化し、グラフに基づく並列計算ライブラリ monolis を用いて、共通の並列カーネル(疎行列ベクトル積、内積、ベクトルの更新)の上に実装しました。これにより、分散メモリ環境でのブレイクダウンの発生と性能を、公平に比べられるようにしています。比べた手法とその略称は、次のとおりです。

  • STAB:BiCGSTAB 法
  • STAB+OA:ブレイクダウンを検出したときだけ、内積を OA で計算し直す BiCGSTAB 法
  • STAB+DD:内積を DD 演算で計算する BiCGSTAB 法
  • STAB+RS:RS を乱数で生成する BiCGSTAB 法
  • SAFE:BiCGSAFE 法
  • SAFE+RS:RS を乱数で生成する BiCGSAFE 法
  • IDR(1)、IDR(2)、IDR(4):s=1,2,4s = 1, 2, 4 の IDR(s) 法

3. 頑健性と計算時間のトレードオフ

論文は、数値実験の結果を次のように考察しています。

  • 倍々精度の内積を使う STAB+DD と、IDR(s) 法は、ベンチマークと 2 相流のスロッシング解析の両方で有効でした。
  • STAB+OA と SAFE は、スロッシング解析では安定でしたが、ベンチマークではブレイクダウンが一部残りました。論文は、これらが普遍的な回避策ではないことを示していると考察しています。
  • STAB+RS と SAFE+RS の結果は、RS がブレイクダウンの起き方に影響しうることを示しています。ただし、STAB+RS ではブレイクダウンが遅れただけで、論文は、乱数化は確定的な対策ではないと述べています。
  • 計算時間では、BiCG 系の解法が全般に有利でした。IDR(s) 法は、スロッシング問題で全体の計算時間が大幅に長くなり、ss を大きくするほど計算時間が増え、並列化の効率が下がりました。

数値実験の結果

Graves–Morris 問題(ベンチマーク)

ブレイクダウンを起こしうる既知のテストとして、Graves–Morris 行列に基づく連立一次方程式 Ax=bA\boldsymbol{x} = \boldsymbol{b} を解き、回避策の効果を評価しました。ここで、x\boldsymbol{x} は解ベクトル、b\boldsymbol{b} は右辺ベクトルです。係数行列 AA の性質は、パラメータ γ\gamma によって変わります。

A=[2γ02γ102γ102⋱⋱⋱⋱](1)A = \begin{bmatrix} 2 & \gamma & & & \\ 0 & 2 & \gamma & & \\ 1 & 0 & 2 & \gamma & \\ & 1 & 0 & 2 & \ddots \\ & & \ddots & \ddots & \ddots \end{bmatrix} \tag{1}

行列の大きさ N∈{100,1000,10000}N \in \{100, 1000, 10000\}、パラメータ γ∈{1,10−2,10−4,10−6,10−8,10−10,10−12}\gamma \in \{1, 10^{-2}, 10^{-4}, 10^{-6}, 10^{-8}, 10^{-10}, 10^{-12}\}、部分領域の数(MPI プロセスの数)p∈{1,2,4,8}p \in \{1, 2, 4, 8\} のすべての組合せ(3 × 7 × 4 = 84 通り)について、ブレイクダウンの有無と計算時間を調べました。ここで、AA は N×NN \times N の行列です。収束は、初期残差に対する残差の 2 ノルムの比が、許容値 ε=1.0×10−8\varepsilon = 1.0 \times 10^{-8} を下回ったことで判定しました。前処理は使わず、厳密解の成分がすべて 1 になるように右辺 b\boldsymbol{b} を選んでいます。初期解は零ベクトル、計算時間は 3 回の測定の最小値です。計算は、すべて大阪大学の SQUID で行いました。

結果は次のとおりです(原論文 Table 1)。平均は、収束した場合だけで計算しています。

手法 ブレイクダウンの件数 平均反復回数 平均計算時間 [s] 100 反復あたりの時間 [s]
STAB 12 28.3 0.22 0.79
STAB+OA 2 28.1 0.26 0.93
STAB+DD 0 29.3 0.42 1.44
STAB+RS 0 17.3 0.14 0.78
SAFE 4 19.3 0.19 0.97
SAFE+RS 0 16.0 0.16 0.97
IDR(1) 0 18.2 0.21 1.14
IDR(2) 0 15.9 0.31 1.93
IDR(4) 0 14.2 0.47 3.34
  • 収束しなかった場合は、すべてブレイクダウンで止まっており、そのブレイクダウンはすべて並列計算で起きました。
  • STAB では 12 通りが収束しませんでしたが、STAB+OA では 2 通り、SAFE では 4 通りに減りました。STAB+DD、STAB+RS、SAFE+RS、IDR(s)(s=1,2,4s = 1, 2, 4)は、すべての場合で収束しました。
  • IDR(s) 法では、ss を大きくすると平均反復回数は減りましたが、1 反復あたりの計算コストは増えました。論文は、IDR(1) は理論的には BiCGSTAB 法と等価だが、アルゴリズムの違いによって振る舞いが異なりうると述べています。

2 相流のスロッシング(応用)

長方形のタンク内のスロッシング問題で、並列計算でのブレイクダウンの発生と回避策を評価しました。流速と圧力の場を、Streamline Upwind/Petrov-Galerkin、Pressure Stabilizing/Petrov-Galerkin と shock-capturing による安定化を用いたモノリシックな有限要素法で解き、気液の界面をレベルセット法で表します。密度と粘性係数を、レベルセット関数に基づく空間的に連続な分布として定め、単一の非圧縮性 Navier–Stokes 方程式を解きます。

計算領域は幅 1.0 m、奥行き 0.025 m、高さ 1.2 m で、初期には高さ 0.5 m まで水が入っています。すべての壁にスリップ境界条件を課し、水平方向の加速度 fx=Aω2sin⁡ωtf_x = A \omega^2 \sin \omega t でスロッシングを起こします。ここで、A=0.0093A = 0.0093 m は振幅、ω=5.311\omega = 5.311 rad/s は角振動数、tt は時間です。この AA は式 (1) の行列とは別の量ですが、論文では同じ文字を使っています。水と空気の密度は 1000 kg/m³ と 1.2 kg/m³、粘性係数は 1.0×10−31.0 \times 10^{-3} Ns/m² と 1.8×10−51.8 \times 10^{-5} Ns/m² です。メッシュは 1 次の六面体要素で、節点数は 23,571 です。8 つの MPI プロセス(p=8p = 8)で 5000 時間ステップを計算しました。収束判定の許容値は 1.0×10−81.0 \times 10^{-8} で、前処理には 4 × 4 のブロック対角スケーリングを用いました。

スロッシング問題の解析モデル
図 1 スロッシング問題の解析モデル(初期状態 t = 0 で気液の界面を表すレベルセットの場)。出典:原論文 Fig. 1(© 2026 Japan Society for Industrial and Applied Mathematics)。
  • STAB は、逐次計算(p=1p = 1)ではブレイクダウンを起こしませんでした。一方、p=8p = 8 の並列計算では、ステップ 46 で流体の連立一次方程式を解くときにブレイクダウンが検出され、反復を続けられずに計算が止まりました。
  • STAB+RS でも、ステップ 63 でブレイクダウンが起きました。
  • STAB+OA では計算を続けることができ、内積の再計算が起動したのは、全ステップを通じて 2 回だけでした。
  • STAB+DD、SAFE、SAFE+RS、IDR(s)(s=1,2,4s = 1, 2, 4)では、ブレイクダウンは起きませんでした。

性能を比べるため、ブレイクダウンが起きる前の最初の 10 ステップについて、全体の計算時間と平均反復回数を測りました(p=8p = 8、原論文 Table 2)。全体の計算時間は、係数行列の組立ての時間と線形ソルバーの時間の和です。

手法 平均反復回数 全体の計算時間 [s]
STAB 268 8.61
STAB+DD 323 9.28
SAFE 213 8.36
IDR(1) 556 25.61
IDR(2) 542 29.61
IDR(4) 514 43.28
  • 全体の計算時間は SAFE が最も短く(8.36 s)、IDR(s) の中では IDR(1) が最も短い 25.61 s でした。STAB+RS と SAFE+RS は、初期の RS の選び方が並列性能を変えないため、時間の比較に含めていません。
  • 論文は、IDR(s) はブレイクダウンの回避に有効だが、この問題の設定では、全体の計算時間の点で BiCG 系の解法が望ましいと述べています。

強スケーリング

スロッシング問題(最初の 10 ステップ)で MPI プロセスの数 pp を増やし、全体の計算時間 T(p)T(p) に基づいて速度向上率を評価しました。

S(p)=T(1)T(p)(5)S(p) = \frac{T(1)}{T(p)} \tag{5}

ここで、S(p)S(p) は速度向上率です。

強スケーリングの結果
図 2 スロッシング問題の強スケーリングの結果。横軸は MPI プロセスの数、縦軸は速度向上率で、黒の直線は理想的なスケーリングです。出典:原論文 Fig. 2(© 2026 Japan Society for Industrial and Applied Mathematics)。
  • STAB、STAB+DD、SAFE、IDR(1)、IDR(2) は、pp を増やすとよく速くなりました。一方、IDR(4) では速度向上が劣化しました。
  • 論文は、その原因を次のように説明しています。IDR(s) のアルゴリズムには、領域分割では並列化しにくい部分(s×ss \times s の小さな行列を係数とする連立方程式の求解)があります。ss が十分に大きいと、プロセスを増やしてもこの部分の実行時間は減らず、並列化できる部分を短縮した効果が制限されて、全体の速度向上が小さくなります。
  • STAB+OA の再計算は、この評価では起動しませんでした。論文は、追加の処理がシミュレーション全体に比べて無視できるため、STAB+OA も BiCGSTAB 法と同程度の速度向上が得られると見込んでいます。
Graphical abstract
Graphical abstract

Overview

The BiCGSTAB method, a Krylov subspace method, is widely used as a representative iterative solver for nonsymmetric linear systems. Iterative methods are advantageous in terms of memory usage and parallel efficiency, and they play an important role in distributed-memory computing environments. However, BiCGSTAB is known to suffer from "breakdown," in which an inner product becomes exactly zero and the iteration cannot proceed. Distributed-memory parallel computations in particular may exhibit breakdowns that do not manifest in serial executions. Yet only limited studies have compared the occurrence of breakdowns and avoidance strategies in practical parallel environments, including computational time and parallel performance.

This paper focuses on parallel simulation of two-phase flows, which are used to investigate phenomena such as sloshing; it evaluates the occurrence of breakdowns and clarifies the trade-off between the effectiveness of avoidance strategies and computational time. The avoidance strategies are classified into three categories, namely the choice of alternative solvers (BiCGSAFE and IDR(s)), precision enhancement in critical operations (inner products in double-double arithmetic), and numerical stabilization of inner products (ordered addition), and they are implemented on the same parallel computing infrastructure for comparison. The comparison uses the Graves–Morris problem as a benchmark and a two-phase sloshing problem as an application, and strong-scaling performance is also shown for representative settings. In the two-phase sloshing problem, standard BiCGSTAB broke down in parallel computation, whereas BiCGSTAB with double-double inner products, BiCGSTAB stabilized by ordered addition, IDR(s), and others completed the simulation without breakdown.

Key points

1. Breakdowns can arise from parallel inner products, even with solvers that are stable in serial

BiCGSTAB is known to suffer from breakdown, in which an inner product becomes exactly zero and the iteration cannot proceed, and from near breakdown, in which an inner product becomes extremely small. This paper deals with the former and does not discuss near breakdowns.

In distributed-memory parallel computation, the inner product of vectors is obtained by having each process compute a local inner product and then taking the global sum with MPI_Allreduce. In such parallel reductions, the addition order depends on the runtime environment and hardware, which can affect numerical consistency. The paper states that, in two-phase flow analyses on distributed-memory systems, breakdowns caused by inner-product reductions can appear even when the same Krylov subspace method is stable in serial runs. In both the benchmark and the application, the numerical experiments confirmed that parallelization can expose breakdowns even in settings that appear stable in serial execution.

2. Three classes of avoidance strategies implemented on the same parallel infrastructure

The breakdown-avoidance strategies are classified into the following three categories.

  • Choice of solvers: BiCGSAFE, which alleviates instabilities in the coefficient computations of BiCGSTAB (e.g., division by zero or extremely small coefficients), and IDR(s) (a stabilized variant) are used. In IDR(s), the convergence behavior can be controlled by the number of shadow-space basis vectors ss.
  • Higher-precision inner products: To suppress rounding errors arising from parallel computation, double-double (DD) arithmetic, a form of pseudo-multiple-precision arithmetic, is used. To limit the additional computational cost, DD is applied only to inner-product computations, both to the local inner product of each process and to the global sum via MPI_Allreduce.
  • Numerical stabilization of inner products: Only when a breakdown is detected, the relevant inner product ⟨a,b⟩=∑i=1naibi\langle \boldsymbol{a}, \boldsymbol{b} \rangle = \sum_{i=1}^{n} a_i b_i is recomputed with the following procedure. Here, aia_i and bib_i are the components of the vectors a\boldsymbol{a} and b\boldsymbol{b}, and nn is the vector length. (a) Each process sends its local subvectors to the root process (MPI rank 0). (b) On the root process, the terms aibia_i b_i are sorted in ascending order of absolute value and summed (ordered addition, OA). (c) The resulting inner-product value is sent to all processes.

For the BiCG-type methods, unless otherwise stated, the initial residual is used as the shadow residual (RS). To examine the sensitivity of breakdown behavior to this choice, variants in which the RS is generated randomly are also tested (with the random seed fixed at 0).

The three solvers are parallelized with MPI and an overlapping domain decomposition method, and they are implemented, using the graph-based parallel computing library monolis, on common parallel kernels (sparse matrix–vector product, inner product, and vector update). This enables a fair comparison of breakdown occurrence and performance in distributed-memory environments. The compared methods and their abbreviations are as follows.

  • STAB: BiCGSTAB
  • STAB+OA: BiCGSTAB with inner products recomputed by OA only when a breakdown is detected
  • STAB+DD: BiCGSTAB with inner products computed in DD arithmetic
  • STAB+RS: BiCGSTAB with a randomly generated RS
  • SAFE: BiCGSAFE
  • SAFE+RS: BiCGSAFE with a randomly generated RS
  • IDR(1), IDR(2), IDR(4): IDR(s) with s=1,2,4s = 1, 2, 4

3. Trade-off between robustness and runtime

The paper discusses the results of the numerical experiments as follows.

  • STAB+DD, which uses double-double inner products, and IDR(s) were effective for both the benchmark and the two-phase sloshing simulation.
  • STAB+OA and SAFE remained stable in the sloshing simulation, but some breakdown cases remained in the benchmark. The paper considers this to indicate that they are not universal avoidance strategies.
  • The results of STAB+RS and SAFE+RS indicate that the RS can affect breakdown behavior. However, STAB+RS only delayed breakdown, and the paper states that randomization is not a deterministic remedy.
  • In terms of computational time, the BiCG-family methods were generally more favorable. For the sloshing problem, IDR(s) required a substantially longer total time, and increasing ss increased the runtime and degraded the parallel efficiency.

Numerical results

Graves–Morris problem (benchmark)

As a known test that can trigger breakdowns, the linear system Ax=bA\boldsymbol{x} = \boldsymbol{b} based on the Graves–Morris matrix is solved to evaluate the effectiveness of the avoidance strategies. Here, x\boldsymbol{x} is the solution vector and b\boldsymbol{b} is the right-hand-side vector. The properties of the coefficient matrix AA vary with the parameter γ\gamma.

A=[2γ02γ102γ102⋱⋱⋱⋱](1)A = \begin{bmatrix} 2 & \gamma & & & \\ 0 & 2 & \gamma & & \\ 1 & 0 & 2 & \gamma & \\ & 1 & 0 & 2 & \ddots \\ & & \ddots & \ddots & \ddots \end{bmatrix} \tag{1}

All combinations (3 × 7 × 4 = 84 configurations) of the matrix size N∈{100,1000,10000}N \in \{100, 1000, 10000\}, the parameter γ∈{1,10−2,10−4,10−6,10−8,10−10,10−12}\gamma \in \{1, 10^{-2}, 10^{-4}, 10^{-6}, 10^{-8}, 10^{-10}, 10^{-12}\}, and the number of subdomains (MPI processes) p∈{1,2,4,8}p \in \{1, 2, 4, 8\} were tested for the presence or absence of breakdowns and for the computational time. Here, AA is an N×NN \times N matrix. Convergence was judged when the ratio of the 2-norm of the residual to that of the initial residual fell below the tolerance ε=1.0×10−8\varepsilon = 1.0 \times 10^{-8}. No preconditioner was used, and the right-hand side b\boldsymbol{b} was chosen so that all components of the exact solution are 1. The initial solution was the zero vector, and the computational time is the minimum of three measurements. All computations were performed on SQUID at Osaka University.

The results are as follows (Table 1 of the original paper). The averages were computed over the converged cases only.

Method Breakdown cases Average iterations Average time [s] Time per 100 iterations [s]
STAB 12 28.3 0.22 0.79
STAB+OA 2 28.1 0.26 0.93
STAB+DD 0 29.3 0.42 1.44
STAB+RS 0 17.3 0.14 0.78
SAFE 4 19.3 0.19 0.97
SAFE+RS 0 16.0 0.16 0.97
IDR(1) 0 18.2 0.21 1.14
IDR(2) 0 15.9 0.31 1.93
IDR(4) 0 14.2 0.47 3.34
  • All nonconvergent cases terminated due to breakdown, and all of these breakdowns occurred in parallel computations.
  • With STAB, 12 cases did not converge, whereas STAB+OA reduced this to 2 cases and SAFE to 4 cases. STAB+DD, STAB+RS, SAFE+RS, and IDR(s) (s=1,2,4s = 1, 2, 4) converged in all cases.
  • For IDR(s), increasing ss reduced the average number of iterations but increased the computational cost per iteration. The paper notes that although IDR(1) is theoretically equivalent to BiCGSTAB, their behaviors may differ owing to algorithmic differences.

Two-phase sloshing (application)

A sloshing problem in a rectangular tank is used to evaluate the occurrence of breakdowns and the avoidance strategies in parallel computation. The velocity and pressure fields are solved with a monolithic finite element method with Streamline Upwind/Petrov-Galerkin, Pressure Stabilizing/Petrov-Galerkin, and shock-capturing stabilization, and the gas–liquid interface is represented with the level-set method. The density and viscosity are defined as spatially continuous distributions based on the level-set function, and a single incompressible Navier–Stokes equation is solved.

The computational domain is 1.0 m wide, 0.025 m deep, and 1.2 m high, and the tank is initially filled with water up to 0.5 m. Slip boundary conditions are imposed on all walls, and sloshing is excited by the horizontal acceleration fx=Aω2sin⁡ωtf_x = A \omega^2 \sin \omega t. Here, A=0.0093A = 0.0093 m is the amplitude, ω=5.311\omega = 5.311 rad/s is the angular frequency, and tt is time. This AA is a different quantity from the matrix in Eq. (1), although the paper uses the same letter. The densities of water and air are 1000 kg/m³ and 1.2 kg/m³, and their viscosities are 1.0×10−31.0 \times 10^{-3} Ns/m² and 1.8×10−51.8 \times 10^{-5} Ns/m². The mesh consists of first-order hexahedral elements with 23,571 nodes. A total of 5000 time steps were computed with 8 MPI processes (p=8p = 8). The convergence tolerance was 1.0×10−81.0 \times 10^{-8}, and a 4 × 4 block diagonal scaling preconditioner was used.

Analysis model of the sloshing problem
Figure 1. Analysis model of the sloshing problem (level-set field representing the gas–liquid interface at the initial state t = 0). Source: Fig. 1 of the original paper (© 2026 Japan Society for Industrial and Applied Mathematics).
  • STAB did not break down in serial execution (p=1p = 1). In parallel execution with p=8p = 8, however, a breakdown was detected at step 46 while solving the linear system for the fluid, and the computation stopped because the iteration could not continue.
  • A breakdown also occurred with STAB+RS, at step 63.
  • With STAB+OA, the computation could proceed, and the inner-product recomputation was invoked only twice over the whole simulation.
  • With STAB+DD, SAFE, SAFE+RS, and IDR(s) (s=1,2,4s = 1, 2, 4), no breakdown occurred.

To compare performance, the total computational time and the average number of iterations were measured for the first 10 steps, before breakdown occurs (p=8p = 8, Table 2 of the original paper). The total time is the sum of the time for assembling the coefficient matrix and the time for the linear solver.

Method Average iterations Total time [s]
STAB 268 8.61
STAB+DD 323 9.28
SAFE 213 8.36
IDR(1) 556 25.61
IDR(2) 542 29.61
IDR(4) 514 43.28
  • SAFE achieved the shortest total time (8.36 s), and among the IDR(s) variants, IDR(1) achieved the shortest, 25.61 s. STAB+RS and SAFE+RS were not included in the timing comparison because the choice of the initial RS does not change the parallel performance.
  • The paper states that although IDR(s) is effective in avoiding breakdown, the BiCG-family methods are preferable in terms of total runtime for this problem setup.

Strong scaling

For the sloshing problem (first 10 steps), the number of MPI processes pp was increased, and the speedup was evaluated based on the total time T(p)T(p).

S(p)=T(1)T(p)(5)S(p) = \frac{T(1)}{T(p)} \tag{5}

Here, S(p)S(p) is the speedup.

Strong-scaling results
Figure 2. Strong-scaling results for the sloshing problem. The horizontal axis is the number of MPI processes, the vertical axis is the speedup, and the black line shows ideal scaling. Source: Fig. 2 of the original paper (© 2026 Japan Society for Industrial and Applied Mathematics).
  • STAB, STAB+DD, SAFE, IDR(1), and IDR(2) showed good speedup as pp increased. In contrast, IDR(4) exhibited degraded speedup.
  • The paper explains the cause as follows. The IDR(s) algorithm includes a segment that is difficult to parallelize under domain decomposition (solving a system whose coefficient is a small s×ss \times s matrix). When ss is sufficiently large, the execution time of this segment does not decrease even when the number of processes increases, which limits the benefit of shortening the parallelizable parts and reduces the overall speedup.
  • The recomputation in STAB+OA was not invoked in this evaluation. The paper expects STAB+OA to achieve speedup comparable to BiCGSTAB, because the additional processing is negligible relative to the full simulation.