summaryrefslogtreecommitdiff
path: root/Trivac/Makefile
diff options
context:
space:
mode:
authorstainer_t <thomas.stainer@oecd-nea.org>2025-09-08 13:48:49 +0200
committerstainer_t <thomas.stainer@oecd-nea.org>2025-09-08 13:48:49 +0200
commit7dfcc480ba1e19bd3232349fc733caef94034292 (patch)
tree03ee104eb8846d5cc1a981d267687a729185d3f3 /Trivac/Makefile
Initial commit from Polytechnique Montreal
Diffstat (limited to 'Trivac/Makefile')
-rw-r--r--Trivac/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/Trivac/Makefile b/Trivac/Makefile
new file mode 100644
index 0000000..b638b1d
--- /dev/null
+++ b/Trivac/Makefile
@@ -0,0 +1,43 @@
+#---------------------------------------------------------------------------
+#
+# Makefile for executing the Trivac non-regression tests
+# Author : A. Hebert (2018-5-10)
+#
+#---------------------------------------------------------------------------
+#
+OS = $(shell uname -s | cut -d"_" -f1)
+ifneq (,$(filter $(OS),SunOS AIX))
+ MAKE = gmake
+endif
+ifeq ($(openmp),1)
+ nomp = 16
+else
+ nomp = 0
+endif
+ifeq ($(intel),1)
+ fcompilerSuite = intel
+else
+ ifeq ($(nvidia),1)
+ fcompilerSuite = nvidia
+ else
+ ifeq ($(llvm),1)
+ fcompilerSuite = llvm
+ else
+ fcompilerSuite = custom
+ endif
+ endif
+endif
+all :
+ $(MAKE) -C src
+clean :
+ $(MAKE) clean -C src
+tests :
+ ./rtrivac -c $(fcompilerSuite) -p $(nomp) -q DIFtst.x2m
+ ./rtrivac -c $(fcompilerSuite) -p $(nomp) -q Ktests.x2m
+ ./rtrivac -c $(fcompilerSuite) -p $(nomp) -q SPNtst.x2m
+ ./rtrivac -c $(fcompilerSuite) -p $(nomp) -q iaea3d.x2m
+ ./rtrivac -c $(fcompilerSuite) -p $(nomp) -q monju3D_spn.x2m
+ ./rtrivac -c $(fcompilerSuite) -p $(nomp) -q multigroup_albedo_2d.x2m
+ ./rtrivac -c $(fcompilerSuite) -p $(nomp) -q multigroup_albedo_3d.x2m
+ ./rtrivac -c $(fcompilerSuite) -p $(nomp) -q takedaM4_spn.x2m
+ ./rtrivac -c $(fcompilerSuite) -p $(nomp) -q NodalTests.x2m