From e76a04a17ca0e562719a3198c36589191c747277 Mon Sep 17 00:00:00 2001
From: Antoine Hoffmann <antoine.hoffmann@epfl.ch>
Date: Mon, 3 Apr 2023 10:41:49 +0200
Subject: [PATCH] new makefile option for testing svd

---
 Makefile       | 10 ++++++++++
 local/dirs.inc |  1 -
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index ee63f350..a0e17d3b 100644
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,16 @@ gdebug: EXEC = $(BINDIR)/gyacomo23_debug
 gdebug: dirs src/srcinfo.h
 gdebug: compile
 
+# test SVD
+test_svd: F90 = mpif90
+test_svd: F90FLAGS = -DTEST_SVD -g -traceback -ftrapuv -warn all -debug all
+test_svd: EXEC = $(BINDIR)/gyacomo23_test_svd
+test_svd: dirs src/srcinfo.h
+test_svd: dirs src/srcinfo.h
+test_svd: LAPACKDIR  = $(HOME)/lib/lapack-3.10.0
+test_svd: LIBS  += -llapack -lblas
+test_svd: LDIRS += -L$(LAPACKDIR)
+test_svd: compile
 # subroutines
 dirs:
 	mkdir -p $(BINDIR)
diff --git a/local/dirs.inc b/local/dirs.inc
index cb368860..99cbc0a7 100644
--- a/local/dirs.inc
+++ b/local/dirs.inc
@@ -11,4 +11,3 @@ FMDIR      = $(HOME)/lib/FM
 FFTW3DIR   = $(HOME)/lib/fftw-3.3.10
 #FFTW3DIR   = $(FFTW_HOME)#for Marconi
 FUTILS_DIR = $(HOME)/lib/futils/src
-LAPACKDIR  = $(HOME)/lib/lapack-3.11.0
-- 
GitLab