Skip to content

Commit a748ebc

Browse files
committed
Merge branch 'Marc-libfyaml' into 'development'
Marc libfyaml See merge request damask/DAMASK!1140
2 parents 0945430 + 35f5e9a commit a748ebc

29 files changed

+1987
-376
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ variables:
1111
# GitLab Settings
1212
GIT_SUBMODULE_STRATEGY: normal
1313
# Shortcut names
14-
MARC_VERSION: '2024.1'
14+
MARC_VERSION: '2025.1'
1515
PETSC_GCC_LATEST: '2025.09.30'
1616
PETSC_ONEAPI_LATEST: '2025.09.30'
1717
PYTHON_LATEST: '2025.06.05'

PRIVATE

install/MarcMentat/2024.1/Marc_tools/comp_damask_hmp.patch

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
+++
3-
@@ -6,18 +6,27 @@
3+
@@ -6,23 +6,34 @@
44
DIR=$1
55
user=$3
66
program=$4
@@ -20,6 +20,7 @@
2020
+echo "Compiling and linking user subroutine $user on host `hostname`"
2121
echo "program: $program"
2222
- $FORTRAN $user.f || \
23+
+ $DCCHIGH $DIR/DAMASK/src/C_routines.c -o C_routines.o
2324
+ $DFORTHIGHMP $user || \
2425
{
2526
- echo "$0: compile failed for $user.f"
@@ -32,7 +33,13 @@
3233

3334

3435
$LOAD ${program} $DIR/lib/main.o\
35-
@@ -33,9 +42,13 @@
36+
$DIR/lib/blkdta.o $DIR/lib/comm?.o \
37+
${userobj-} \
38+
+ C_routines.o
39+
$DIR/lib/srclib.a \
40+
$MNFLIBS \
41+
$MDUSER \
42+
@@ -33,9 +44,14 @@ echo "program: $program"
3643
$TKLIBS \
3744
$MRCLIBS \
3845
$METISLIBS \
@@ -44,6 +51,7 @@
4451
exit 1
4552
}
4653
/bin/rm $userobj
54+
+ /bin/rm $DIRJOB/*.o
4755
+ /bin/rm $DIRJOB/*.mod
4856
+ /bin/rm $DIRJOB/*.smod
49-
+ /bin/rm $DIRJOB/*_genmod.f90
57+
+ /bin/rm $DIRJOB/*_genmod.f90

install/MarcMentat/2024.1/Marc_tools/comp_damask_lmp.patch

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
+++
3-
@@ -6,18 +6,27 @@
3+
@@ -6,23 +6,34 @@
44
DIR=$1
55
user=$3
66
program=$4
@@ -20,6 +20,7 @@
2020
+echo "Compiling and linking user subroutine $user on host `hostname`"
2121
echo "program: $program"
2222
- $FORTRAN $user.f || \
23+
+ $DCCLOW $DIR/DAMASK/src/C_routines.c -o C_routines.o
2324
+ $DFORTRANLOWMP $user || \
2425
{
2526
- echo "$0: compile failed for $user.f"
@@ -32,7 +33,13 @@
3233

3334

3435
$LOAD ${program} $DIR/lib/main.o\
35-
@@ -33,9 +42,13 @@
36+
$DIR/lib/blkdta.o $DIR/lib/comm?.o \
37+
${userobj-} \
38+
+ C_routines.o
39+
$DIR/lib/srclib.a \
40+
$MNFLIBS \
41+
$MDUSER \
42+
@@ -33,9 +44,14 @@ echo "program: $program"
3643
$TKLIBS \
3744
$MRCLIBS \
3845
$METISLIBS \
@@ -44,6 +51,7 @@
4451
exit 1
4552
}
4653
/bin/rm $userobj
54+
+ /bin/rm $DIRJOB/*.o
4755
+ /bin/rm $DIRJOB/*.mod
4856
+ /bin/rm $DIRJOB/*.smod
49-
+ /bin/rm $DIRJOB/*_genmod.f90
57+
+ /bin/rm $DIRJOB/*_genmod.f90

install/MarcMentat/2024.1/Marc_tools/comp_damask_mp.patch

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
+++
3-
@@ -6,18 +6,27 @@
3+
@@ -6,23 +6,34 @@
44
DIR=$1
55
user=$3
66
program=$4
@@ -20,6 +20,7 @@
2020
+echo "Compiling and linking user subroutine $user on host `hostname`"
2121
echo "program: $program"
2222
- $FORTRAN $user.f || \
23+
+ $DCC $DIR/DAMASK/src/C_routines.c -o C_routines.o
2324
+ $DFORTRANMP $user || \
2425
{
2526
- echo "$0: compile failed for $user.f"
@@ -32,7 +33,13 @@
3233

3334

3435
$LOAD ${program} $DIR/lib/main.o\
35-
@@ -33,9 +42,13 @@
36+
$DIR/lib/blkdta.o $DIR/lib/comm?.o \
37+
${userobj-} \
38+
+ C_routines.o
39+
$DIR/lib/srclib.a \
40+
$MNFLIBS \
41+
$MDUSER \
42+
@@ -33,9 +44,14 @@ echo "program: $program"
3643
$TKLIBS \
3744
$MRCLIBS \
3845
$METISLIBS \
@@ -44,6 +51,7 @@
4451
exit 1
4552
}
4653
/bin/rm $userobj
54+
+ /bin/rm $DIRJOB/*.o
4755
+ /bin/rm $DIRJOB/*.mod
4856
+ /bin/rm $DIRJOB/*.smod
49-
+ /bin/rm $DIRJOB/*_genmod.f90
57+
+ /bin/rm $DIRJOB/*_genmod.f90

install/MarcMentat/2024.1/Marc_tools/include_linux64.patch

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
+++
3-
@@ -212,6 +212,17 @@
3+
@@ -212,6 +212,17 @@ if test -n "$MSCCOSIM_HOME"; then
44
MARC_COSIM_LIB="$MSCCOSIM_HOME/CoSim$MSCCOSIM_VERSION/Dcosim$MSCCOSIM_VERSION/lib"
55
fi
6-
6+
77
+# DAMASK uses the HDF5 compiler wrapper around the Intel compiler
88
+if test -n "$DAMASK_USER"; then
99
+ H5FC=$(h5fc -shlib -show)
@@ -18,16 +18,28 @@
1818
# AEM
1919
if test "$MARCDLLOUTDIR" = ""; then
2020
DLLOUTDIR="$MARC_LIB"
21-
@@ -686,7 +697,7 @@
21+
@@ -660,6 +671,11 @@ CCHIGH="icc -c $CC_OPT -O3 $I8DEFINES -DLinux -DLINUX -DLinux_intel $CDEFINES $C
22+
CC_TETMESH="icpc -c -O2 -I$TETMESHDIR/include -qopenmp -ansi-alias -m64 -pipe -fPIC -falign-functions=16 -fstrict-aliasing -fno-jump-tables -MMD -DLINUX -D_CRT_SECURE_NO_WARNINGS -DX64 -DMESHINGAPI_LIB -DNDEBUG"
23+
CC_CAEFATIGUE="icpc -c -O2 -I$CAEFATIGUEDIR/linux64/include -qopenmp -ansi-alias -m64 -pipe -fPIC -falign-functions=16 -fstrict-aliasing -fno-jump-tables -MMD -DLINUX -D_CRT_SECURE_NO_WARNINGS -DX64 -DNDEBUG"
24+
25+
+# DAMASK compiler calls
26+
+DCCLOW="icx -c $CC_OPT -O0 $I8DEFINES -DLinux -DLINUX -DLinux_intel -DFYAML -DMARC_SOURCE $CDEFINES $CINCL $SOLVERFLAGS $OPENSSL_INCLUDE "
27+
+DCC="icx -c $CC_OPT -O1 $I8DEFINES -DLinux -DLINUX -DLinux_intel -DFYAML -DMARC_SOURCE $CDEFINES $CINCL $SOLVERFLAGS $OPENSSL_INCLUDE -I$MPI_ROOT/include"
28+
+DCCHIGH="icx -c $CC_OPT -O3 $I8DEFINES -DLinux -DLINUX -DLinux_intel -DFYAML -DMARC_SOURCE $CDEFINES $CINCL $SOLVERFLAGS $OPENSSL_INCLUDE "
29+
+
30+
if test "$MARCDEBUG" = "ON"
31+
then
32+
CC="icc -c $CC_OPT -DLinux $I8DEFINES -DLINUX -DLinux_intel $CDEFINES $CINCL $SOLVERFLAGS $OPENSSL_INCLUDE -I$MPI_ROOT/include "
33+
@@ -686,7 +702,7 @@ then
2234
PROFILE=" $PROFILE -pg"
2335
fi
24-
36+
2537
-FORT_OPT="-c -assume byterecl -safe-cray-ptr -mp1 -WB -fp-model source"
2638
+FORT_OPT="-c -implicitnone -stand f18 -standard-semantics -assume nostd_mod_proc_name -safe-cray-ptr -mp1 -WB -fp-model source"
2739
# FORT_OPT="-c -assume byterecl -safe-cray-ptr -mp1 -WB "
2840
if test "$MTHREAD" = "OPENMP"
2941
then
30-
@@ -700,7 +711,7 @@
42+
@@ -700,7 +716,7 @@ else
3143
FORT_OPT=" $FORT_OPT -save -zero"
3244
fi
3345
if test "$MARCHDF_HDF" = "HDF"; then
@@ -36,10 +48,10 @@
3648
fi
3749
if test "$NASTRAN_LIB" = "on" ; then
3850
FORT_OPT="$FORT_OPT -fPIC "
39-
@@ -717,6 +728,41 @@
51+
@@ -717,6 +733,41 @@ FORTNA="$FCOMP $FORT_OPT -fno-alias -O3 $I8FFLAGS -I$MARC_SOURCE/common \
4052
# for compiling free form f90 files. high opt, integer(4)
4153
FORTF90="$FCOMP -c -O3"
42-
54+
4355
+# determine DAMASK version
4456
+if test -n "$DAMASK_USER"; then
4557
+ DAMASKROOT=`dirname $DAMASK_USER`/../..
@@ -63,27 +75,27 @@
6375
+
6476
+# DAMASK compiler calls
6577
+DFORTLOWMP="$FCOMP -c -O0 -qno-offload -implicitnone -stand f18 -standard-semantics -assume nostd_mod_proc_name -safe-cray-ptr $PROFILE -zero -mp1 -WB $I8FFLAGS -I$MARC_SOURCE/common \
66-
+ -fpp -ftz -diag-disable 5268 -warn declarations -warn general -warn usage -warn interfaces -warn ignore_loc -warn alignments -DMARC_SOURCE=$MARC_SOURCE $DAMASK_INFO \
78+
+ -fpp -ftz -diag-disable 5268 -warn declarations -warn general -warn usage -warn interfaces -warn ignore_loc -warn alignments -DFYAML -DMARC_SOURCE=$MARC_SOURCE $DAMASK_INFO \
6779
+ -qopenmp -qopenmp-threadprivate=compat\
6880
+ $MUMPS_INCLUDE $I8DEFINES -DLinux -DLINUX -DLinux_intel $FDEFINES $DDM $SOLVERFLAGS -I$KDTREE2_MOD -I$MARC_MOD"
6981
+DFORTRANMP="$FCOMP -c -O1 -qno-offload -implicitnone -stand f18 -standard-semantics -assume nostd_mod_proc_name -safe-cray-ptr $PROFILE -zero -mp1 -WB $I8FFLAGS -I$MARC_SOURCE/common \
70-
+ -fpp -ftz -diag-disable 5268 -warn declarations -warn general -warn usage -warn interfaces -warn ignore_loc -warn alignments -DMARC_SOURCE=$MARC_SOURCE $DAMASK_INFO \
82+
+ -fpp -ftz -diag-disable 5268 -warn declarations -warn general -warn usage -warn interfaces -warn ignore_loc -warn alignments -DFYAML -DMARC_SOURCE=$MARC_SOURCE $DAMASK_INFO \
7183
+ -qopenmp -qopenmp-threadprivate=compat\
7284
+ $MUMPS_INCLUDE $I8DEFINES -DLinux -DLINUX -DLinux_intel $FDEFINES $DDM $SOLVERFLAGS -I$KDTREE2_MOD -I$MARC_MOD"
7385
+DFORTHIGHMP="$FCOMP -c -O3 -qno-offload -implicitnone -stand f18 -standard-semantics -assume nostd_mod_proc_name -safe-cray-ptr $PROFILE -zero -mp1 -WB $I8FFLAGS -I$MARC_SOURCE/common \
74-
+ -fpp -ftz -diag-disable 5268 -warn declarations -warn general -warn usage -warn interfaces -warn ignore_loc -warn alignments -DMARC_SOURCE=$MARC_SOURCE $DAMASK_INFO \
86+
+ -fpp -ftz -diag-disable 5268 -warn declarations -warn general -warn usage -warn interfaces -warn ignore_loc -warn alignments -DFYAML -DMARC_SOURCE=$MARC_SOURCE $DAMASK_INFO \
7587
+ -qopenmp -qopenmp-threadprivate=compat\
7688
+ $MUMPS_INCLUDE $I8DEFINES -DLinux -DLINUX -DLinux_intel $FDEFINES $DDM $SOLVERFLAGS -I$KDTREE2_MOD -I$MARC_MOD"
7789
+
7890
if test "$MARCDEBUG" = "ON"
7991
then
8092
FORTLOW="$FCOMP $FORT_OPT $PROFILE $I8FFLAGS -I$MARC_SOURCE/common \
81-
@@ -883,7 +929,7 @@
82-
93+
@@ -883,7 +934,7 @@ SECLIBS="-L$MARC_LIB -llapi"
94+
8395
SOLVERLIBS="${BCSSOLVERLIBS} ${VKISOLVERLIBS} ${CASISOLVERLIBS} ${MF2SOLVERLIBS} \
8496
-L$MARC_MKL \
8597
- $MARC_LIB/blas_src.a ${ACSI_LIB}/ACSI_MarcLib.a $KDTREE2_LIB/libkdtree2.a $MARC_LIB/libtetmeshinterface.a $MARC_LIB/libcaefatigueinterface.a -L$MARC_LIB -lmkl_blacs_intelmpi_ilp64 -lmkl_scalapack_ilp64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -ltetmesh -ltetadapt -lmeshgems -lmg-tetra -lmeshgems_stubs -lCATMshMesherCore -lmg-hybrid -lmg-cadsurf -lmg-hexa $HDF_LIBS $SOLVER2LIBS $RTREE_LIB/librtree_lib.a $SFGEO_LIB/libgeo_lib.a"
8698
+ $MARC_LIB/blas_src.a ${ACSI_LIB}/ACSI_MarcLib.a $KDTREE2_LIB/libkdtree2.a $MARC_LIB/libtetmeshinterface.a $MARC_LIB/libcaefatigueinterface.a -L$MARC_LIB -lmkl_blacs_intelmpi_ilp64 -lmkl_scalapack_ilp64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -ltetmesh -ltetadapt -lmeshgems -lmg-tetra -lmeshgems_stubs -lCATMshMesherCore -lmg-hybrid -lmg-cadsurf -lmg-hexa $HDF5_LIB $SOLVER2LIBS $RTREE_LIB/librtree_lib.a $SFGEO_LIB/libgeo_lib.a"
87-
99+
88100
SOLVERLIBS_DLL=${SOLVERLIBS}
89101
if test "$AEM_DLL" -eq 1

0 commit comments

Comments
 (0)