From 438f2ac5ed75ca3aeaa596d17838b51c2203d3c3 Mon Sep 17 00:00:00 2001
From: Lionel GUEZ <guez@lmd.ens.fr>
Date: Fri, 25 Jun 2021 18:44:35 +0200
Subject: [PATCH] Bug fix: use mpiexec for MPI programs

Even for a run with a single MPI process, otherwise execution will not
work on some systems (jean-zay).
---
 Inst_eddies/Tests/short_tests.json | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/Inst_eddies/Tests/short_tests.json b/Inst_eddies/Tests/short_tests.json
index 6ef50099..d4746041 100644
--- a/Inst_eddies/Tests/short_tests.json
+++ b/Inst_eddies/Tests/short_tests.json
@@ -224,10 +224,12 @@
 	[
 	    ["mkdir", "SHPC"],
 	    [
+		"$mpiexec", "-n", "1",
 		"$build_dir/Inst_eddies/test_set_max_speed",
 		"$PWD/Get_1_outerm/SHPC"
 	    ]
-	]
+	],
+	"stdout": "test_set_max_speed_stdout.txt"
     },
     {
         "required":
@@ -247,10 +249,12 @@
 	[
 	    ["mkdir", "SHPC"],
 	    [
+		"$mpiexec", "-n", "1",
 		"$build_dir/Inst_eddies/test_set_max_speed",
 		"$PWD/Get_1_outerm_noise_2_8/SHPC"
 	    ]
-	]
+	],
+	"stdout": "test_set_max_speed_stdout.txt"
     },
     {
         "input": "&main_nml min_amp = 0./\n",
@@ -316,9 +320,10 @@
         "title": "Nearby_extr",
         "command":
 	[
-	  "$build_dir/Inst_eddies/test_nearby_extr",
-	  "$PWD/Inst_eddies_loop/SHPC_cyclo_all_dates"
-	]
+            "$mpiexec", "-n", "1", "$build_dir/Inst_eddies/test_nearby_extr",
+	    "$PWD/Inst_eddies_loop/SHPC_cyclo_all_dates"
+	],
+	"stdout": "test_nearby_extr_stdout.txt"
     },
     {
         "description": "test_set_all_outerm with periodicity.",
-- 
GitLab