From 1096302d5021947cf979fb7c8781b929b233ff77 Mon Sep 17 00:00:00 2001
From: Luc Papeleux <l.papeleux@uliege.be>
Date: Tue, 11 Apr 2023 16:40:02 +0200
Subject: [PATCH] add spring (Arcelor machine) cfg files

---
 cfg/spring/gmsh.profile      |  3 +++
 cfg/spring/matlab.profile    |  1 +
 cfg/spring/mumps.profile     |  3 +++
 cfg/spring/oneApi.bashrc     | 15 +++++++++++++++
 cfg/spring/oneApi.profile    | 11 +++++++++++
 cfg/spring/parasolid.profile |  5 +++++
 cfg/spring/samcef.profile    |  2 ++
 7 files changed, 40 insertions(+)
 create mode 100644 cfg/spring/gmsh.profile
 create mode 100644 cfg/spring/matlab.profile
 create mode 100644 cfg/spring/mumps.profile
 create mode 100644 cfg/spring/oneApi.bashrc
 create mode 100644 cfg/spring/oneApi.profile
 create mode 100644 cfg/spring/parasolid.profile
 create mode 100644 cfg/spring/samcef.profile

diff --git a/cfg/spring/gmsh.profile b/cfg/spring/gmsh.profile
new file mode 100644
index 0000000..412f3fc
--- /dev/null
+++ b/cfg/spring/gmsh.profile
@@ -0,0 +1,3 @@
+add2env PATH "/opt/gmsh/bin" front
+add2env LD_LIBRARY_PATH "/opt/gmsh/lib"
+add2env PYTHONPATH "/opt/gmsh/lib"
diff --git a/cfg/spring/matlab.profile b/cfg/spring/matlab.profile
new file mode 100644
index 0000000..0ff3588
--- /dev/null
+++ b/cfg/spring/matlab.profile
@@ -0,0 +1 @@
+add2env PATH "/opt/matlab/bin"
diff --git a/cfg/spring/mumps.profile b/cfg/spring/mumps.profile
new file mode 100644
index 0000000..57e0ada
--- /dev/null
+++ b/cfg/spring/mumps.profile
@@ -0,0 +1,3 @@
+add2env LD_LIBRARY_PATH "/opt/mumps/lib"
+add2env LIB "/opt/mumps/lib"
+add2env INCLUDE "/opt/mumps/include"
diff --git a/cfg/spring/oneApi.bashrc b/cfg/spring/oneApi.bashrc
new file mode 100644
index 0000000..b87d57a
--- /dev/null
+++ b/cfg/spring/oneApi.bashrc
@@ -0,0 +1,15 @@
+# Intel compiler and/or TBB/MKL 
+#
+# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*")
+
+if [ -d /opt/intel ] ; then
+     #. /opt/intel/oneapi/setvars.sh intel64
+     # since last update of one api latest -> 2022.2.0 (not complete)
+     . /opt/intel/oneapi/tbb/latest/env/vars.sh intel64
+     . /opt/intel/oneapi/mkl/latest/env/vars.sh intel64
+     . /opt/intel/oneapi/compiler/latest/env/vars.sh intel64
+     #. /opt/intel/oneapi/tbb/2021.6.0/env/vars.sh intel64     
+     #. /opt/intel/oneapi/mkl/2022.1.0/env/vars.sh intel64
+     #. /opt/intel/oneapi/compiler/2022.1.0/env/vars.sh intel64
+
+fi
diff --git a/cfg/spring/oneApi.profile b/cfg/spring/oneApi.profile
new file mode 100644
index 0000000..a3b3939
--- /dev/null
+++ b/cfg/spring/oneApi.profile
@@ -0,0 +1,11 @@
+# Intel compiler and/or TBB/MKL 
+#
+# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*")
+
+if [ -d /opt/intel ] ; then
+     #. /opt/intel/oneapi/setvars.sh intel64
+     . /opt/intel/oneapi/tbb/latest/env/vars.sh intel64     
+     . /opt/intel/oneapi/mkl/latest/env/vars.sh intel64
+     . /opt/intel/oneapi/compiler/latest/env/vars.sh intel64
+
+fi
diff --git a/cfg/spring/parasolid.profile b/cfg/spring/parasolid.profile
new file mode 100644
index 0000000..274a996
--- /dev/null
+++ b/cfg/spring/parasolid.profile
@@ -0,0 +1,5 @@
+# Parasolid
+
+add2env PATH "/opt/parasolid/shared_object"
+add2env INCLUDE "/opt/parasolid"
+export P_SCHEMA=/opt/parasolid/schema
diff --git a/cfg/spring/samcef.profile b/cfg/spring/samcef.profile
new file mode 100644
index 0000000..834343e
--- /dev/null
+++ b/cfg/spring/samcef.profile
@@ -0,0 +1,2 @@
+export SAM_ZONE=200000000
+add2env PATH "/opt/samcef"
-- 
GitLab