From f2f6a09dfa8fa6958482fb7ae8eea204ed1492a8 Mon Sep 17 00:00:00 2001
From: ahoffmann <antoine.hoffmann@epfl.ch>
Date: Thu, 4 May 2023 21:34:09 +0200
Subject: [PATCH] gfort single and double precision option

---
 Makefile | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index 8e713893..af8f6958 100644
--- a/Makefile
+++ b/Makefile
@@ -43,13 +43,21 @@ daint: EXEC = $(BINDIR)/gyacomo23_dp
 daint: dirs src/srcinfo.h
 daint: compile
 
-# gfortran opt version, for compilation with gfortran
-gopt: F90 = mpif90
-gopt: F90FLAGS = -O3 -std=legacy -ffree-line-length-0
-gopt: EXTMOD   = -J $(MODDIR)
-gopt: EXEC = $(BINDIR)/gyacomo23_dp
-gopt: dirs src/srcinfo.h
-gopt: compile
+# gfortran sp version, for compilation with gfortran
+gfsp: F90 = mpif90
+gfsp: F90FLAGS = -DSINGLE_PRECISION -O3 -std=legacy -ffree-line-length-0
+gfsp: EXTMOD   = -J $(MODDIR)
+gfsp: EXEC = $(BINDIR)/gyacomo23_sp
+gfsp: dirs src/srcinfo.h
+gfsp: compile
+
+# gfortran dp version, for compilation with gfortran
+gfdp: F90 = mpif90
+gfdp: F90FLAGS = -O3 -std=legacy -ffree-line-length-0
+gfdp: EXTMOD   = -J $(MODDIR)
+gfdp: EXEC = $(BINDIR)/gyacomo23_dp
+gfdp: dirs src/srcinfo.h
+gfdp: compile
 
 # gfortran version, compile with gfortran
 gdebug: F90 = mpif90
-- 
GitLab