From bcc1a499370bd333cf23c8e11be0a4a0d2324a5c Mon Sep 17 00:00:00 2001
From: Mark Olesen <Mark.Olesen@esi-group.com>
Date: Fri, 5 Jun 2020 17:46:29 +0200
Subject: [PATCH] TUT: add parallel test for laplacianFoam

- one of the simplest test applications to run quickly and test
---
 .../laplacianFoam/flange/Allrun-parallel      | 10 +++++++++
 .../flange/system/decomposeParDict            | 21 +++++++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100755 tutorials/basic/laplacianFoam/flange/Allrun-parallel
 create mode 100644 tutorials/basic/laplacianFoam/flange/system/decomposeParDict

diff --git a/tutorials/basic/laplacianFoam/flange/Allrun-parallel b/tutorials/basic/laplacianFoam/flange/Allrun-parallel
new file mode 100755
index 00000000000..05fed50bcf2
--- /dev/null
+++ b/tutorials/basic/laplacianFoam/flange/Allrun-parallel
@@ -0,0 +1,10 @@
+#!/bin/sh
+cd "${0%/*}" || exit                                # Run from this directory
+. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions        # Tutorial run functions
+#------------------------------------------------------------------------------
+
+runApplication ansysToFoam flange.ans -scale 0.001
+runApplication decomposePar
+runParallel $(getApplication)
+
+#------------------------------------------------------------------------------
diff --git a/tutorials/basic/laplacianFoam/flange/system/decomposeParDict b/tutorials/basic/laplacianFoam/flange/system/decomposeParDict
new file mode 100644
index 00000000000..4ad06fd0568
--- /dev/null
+++ b/tutorials/basic/laplacianFoam/flange/system/decomposeParDict
@@ -0,0 +1,21 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| =========                 |                                                 |
+| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
+|  \\    /   O peration     | Version:  v2006                                 |
+|   \\  /    A nd           | Website:  www.openfoam.com                      |
+|    \\/     M anipulation  |                                                 |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+    version     2.0;
+    format      ascii;
+    class       dictionary;
+    object      decomposeParDict;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+numberOfSubdomains 4;
+
+method  scotch;
+
+// ************************************************************************* //
-- 
GitLab