diff --git a/applications/openfoam/openfoam-v2012-cray.patch b/applications/openfoam/openfoam-v2012-cray.patch new file mode 100644 index 0000000..7a45e4f --- /dev/null +++ b/applications/openfoam/openfoam-v2012-cray.patch @@ -0,0 +1,113 @@ +diff -ruN ./wmake/rules/General/mplibCRAY-MPICH ../../OpenFOAM-v2012/wmake/rules/General/mplibCRAY-MPICH +--- ./wmake/rules/General/mplibCRAY-MPICH 2020-12-22 14:30:37.000000000 +0000 ++++ ../../OpenFOAM-v2012/wmake/rules/General/mplibCRAY-MPICH 2023-10-31 09:26:02.000000000 +0000 +@@ -1,6 +1,7 @@ + #------------------------------------------------------------------------------ +-# Cray MPICH is MPICH + +-include $(GENERAL_RULES)/mplibMPICH ++PFLAGS = -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX ++PINC = ++PLIBS = + + #------------------------------------------------------------------------------ +diff -ruN ./wmake/rules/linuxARM64Cray/c ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/c +--- ./wmake/rules/linuxARM64Cray/c 1970-01-01 00:00:00.000000000 +0000 ++++ ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/c 2023-10-31 09:19:04.000000000 +0000 +@@ -0,0 +1,15 @@ ++# Cray compiler - a gcc variant/wrapper ++include $(GENERAL_RULES)/Gcc/c ++ ++cc = cc ++ ++cARCH = ++ ++# Compile option is non-mandatory, but must be non-empty ++sinclude $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION) ++ ++cFLAGS = $(cARCH) $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC ++ ++ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $< -o $@ ++ ++include $(GENERAL_RULES)/Gcc/link-c +diff -ruN ./wmake/rules/linuxARM64Cray/c++ ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/c++ +--- ./wmake/rules/linuxARM64Cray/c++ 1970-01-01 00:00:00.000000000 +0000 ++++ ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/c++ 2023-10-31 09:19:35.000000000 +0000 +@@ -0,0 +1,17 @@ ++# Cray compiler - a gcc variant/wrapper ++include $(GENERAL_RULES)/Gcc/c++ ++ ++CC = CC -std=c++11 ++ ++c++ARCH = -pthread ++ ++include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION) ++ ++c++FLAGS = $(c++ARCH) $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC ++ ++Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $< -o $@ ++cxxtoo = $(Ctoo) ++cctoo = $(Ctoo) ++cpptoo = $(Ctoo) ++ ++include $(GENERAL_RULES)/Gcc/link-c++ +diff -ruN ./wmake/rules/linuxARM64Cray/cDebug ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/cDebug +--- ./wmake/rules/linuxARM64Cray/cDebug 1970-01-01 00:00:00.000000000 +0000 ++++ ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/cDebug 2023-10-31 09:15:07.000000000 +0000 +@@ -0,0 +1,2 @@ ++cDBUG = -ggdb -DFULLDEBUG ++cOPT = -O1 -fdefault-inline -finline-functions +diff -ruN ./wmake/rules/linuxARM64Cray/c++Debug ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/c++Debug +--- ./wmake/rules/linuxARM64Cray/c++Debug 1970-01-01 00:00:00.000000000 +0000 ++++ ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/c++Debug 2023-10-31 09:15:07.000000000 +0000 +@@ -0,0 +1,2 @@ ++c++DBUG = -ggdb3 -DFULLDEBUG ++c++OPT = -O0 -fdefault-inline +diff -ruN ./wmake/rules/linuxARM64Cray/cOpt ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/cOpt +--- ./wmake/rules/linuxARM64Cray/cOpt 1970-01-01 00:00:00.000000000 +0000 ++++ ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/cOpt 2023-10-31 09:15:07.000000000 +0000 +@@ -0,0 +1,2 @@ ++cDBUG = ++cOPT = -O3 +diff -ruN ./wmake/rules/linuxARM64Cray/c++Opt ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/c++Opt +--- ./wmake/rules/linuxARM64Cray/c++Opt 1970-01-01 00:00:00.000000000 +0000 ++++ ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/c++Opt 2023-10-31 09:15:07.000000000 +0000 +@@ -0,0 +1,4 @@ ++c++DBUG = ++c++OPT = -O3 ++ ++ROUNDING_MATH = -frounding-math +diff -ruN ./wmake/rules/linuxARM64Cray/cProf ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/cProf +--- ./wmake/rules/linuxARM64Cray/cProf 1970-01-01 00:00:00.000000000 +0000 ++++ ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/cProf 2023-10-31 09:15:07.000000000 +0000 +@@ -0,0 +1,2 @@ ++cDBUG = -pg ++cOPT = -O2 +diff -ruN ./wmake/rules/linuxARM64Cray/c++Prof ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/c++Prof +--- ./wmake/rules/linuxARM64Cray/c++Prof 1970-01-01 00:00:00.000000000 +0000 ++++ ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/c++Prof 2023-10-31 09:15:07.000000000 +0000 +@@ -0,0 +1,2 @@ ++c++DBUG = -pg ++c++OPT = -O2 +diff -ruN ./wmake/rules/linuxARM64Cray/general ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/general +--- ./wmake/rules/linuxARM64Cray/general 1970-01-01 00:00:00.000000000 +0000 ++++ ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/general 2023-10-31 09:15:07.000000000 +0000 +@@ -0,0 +1,13 @@ ++CPP = cpp -traditional-cpp $(GFLAGS) ++ ++include $(GENERAL_RULES)/standard ++## include $(GENERAL_RULES)/Gcc/openmp ++ ++ifneq (,$(findstring ~openmp,$(WM_COMPILE_CONTROL))) ++ include $(GENERAL_RULES)/no-openmp ++endif ++ ++include $(DEFAULT_RULES)/c ++include $(DEFAULT_RULES)/c++ ++ ++# ----------------------------------------------------------------------------- +diff -ruN ./wmake/rules/linuxARM64Cray/mplibCRAY-MPICH ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/mplibCRAY-MPICH +--- ./wmake/rules/linuxARM64Cray/mplibCRAY-MPICH 1970-01-01 00:00:00.000000000 +0000 ++++ ../../OpenFOAM-v2012/wmake/rules/linuxARM64Cray/mplibCRAY-MPICH 2023-10-31 09:17:39.000000000 +0000 +@@ -0,0 +1 @@ ++include $(GENERAL_RULES)/mplibCRAY-MPICH