From 165c64e91aea782052d445c48b0cd9ccfc58c2a6 Mon Sep 17 00:00:00 2001 From: "Mulas, Giacomo" <gmulas@oa-cagliari.inaf.it> Date: Thu, 7 Mar 2024 20:06:17 +0100 Subject: [PATCH] lapack_calls.cpp must only be compiled if USE_LAPACK is defined --- src/libnptm/lapack_calls.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libnptm/lapack_calls.cpp b/src/libnptm/lapack_calls.cpp index f6bedff1..f6b3f39f 100644 --- a/src/libnptm/lapack_calls.cpp +++ b/src/libnptm/lapack_calls.cpp @@ -12,8 +12,8 @@ #endif #endif -void zinvert(std::complex<double> **mat, lapack_int n, int &jer) { #ifdef USE_LAPACK +void zinvert(std::complex<double> **mat, lapack_int n, int &jer) { jer = 0; __complex__ double *arr = new __complex__ double[n * n]; const __complex__ double uim = 1.0*I; @@ -44,5 +44,5 @@ void zinvert(std::complex<double> **mat, lapack_int n, int &jer) { } delete[] IPIV; delete[] arr; -#endif } +#endif -- GitLab