commit 3b47bdceea0cda91f032e06d9b46b004d1f740ad
parent 3b7a0032f84b7ff4b72826d64e7024247e66e870
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 5 Dec 2023 15:30:24 +0100
Add the build script of the stardis-solver library
It is currently based on the feature_posix_make branch, with no version
label. We can therefore assume that it is still under development.
Diffstat:
2 files changed, 40 insertions(+), 0 deletions(-)
diff --git a/lint.mk b/lint.mk
@@ -59,3 +59,4 @@ lint:
shellcheck -o all -x -P src src/star-stl_0.5.sh
shellcheck -o all -x -P src src/star-uvm_0.3.1.sh
shellcheck -o all -x -P src src/star-vx_0.3.sh
+ shellcheck -o all -x -P src src/stardis-solver.sh
diff --git a/src/stardis-solver.sh b/src/stardis-solver.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# Copyright (C) 2023 |Méso|Star> (contact@meso-star.com)
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+set -e
+
+[ -n "${STARDIS_SOLVER}" ] && return
+export STARDIS_SOLVER=1
+
+[ -z "${DISTRIB_PARALLELISM}" ] && DISTRIB_PARALLELISM=MPI
+
+. "build.sh"
+. "rsys_0.14.sh"
+. "star-2d_0.7.sh"
+. "star-3d_0.10.sh"
+. "star-enclosures-2d.sh"
+. "star-enclosures-3d.sh"
+. "star-sp_0.14.sh"
+
+name="stardis-solver"
+url="$\(REPO\)/stardis-solver.git"
+tag="origin/feature_posix_make"
+dep="rsys star-2d star-3d star-enclosures-2d star-enclosures-3d star-sp"
+opt="BUILD_TYPE=$\(BUILD_TYPE\) LIB_TYPE=$\(LIB_TYPE\)"
+opt="${opt} DISTRIB_PARALLELISM=${DISTRIB_PARALLELISM}"
+git_repo