Skip to content
Snippets Groups Projects
Commit 165c64e9 authored by Mulas, Giacomo's avatar Mulas, Giacomo
Browse files

lapack_calls.cpp must only be compiled if USE_LAPACK is defined

parent ab3bc98c
No related branches found
No related tags found
No related merge requests found
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
#endif #endif
#endif #endif
void zinvert(std::complex<double> **mat, lapack_int n, int &jer) {
#ifdef USE_LAPACK #ifdef USE_LAPACK
void zinvert(std::complex<double> **mat, lapack_int n, int &jer) {
jer = 0; jer = 0;
__complex__ double *arr = new __complex__ double[n * n]; __complex__ double *arr = new __complex__ double[n * n];
const __complex__ double uim = 1.0*I; const __complex__ double uim = 1.0*I;
...@@ -44,5 +44,5 @@ void zinvert(std::complex<double> **mat, lapack_int n, int &jer) { ...@@ -44,5 +44,5 @@ void zinvert(std::complex<double> **mat, lapack_int n, int &jer) {
} }
delete[] IPIV; delete[] IPIV;
delete[] arr; delete[] arr;
#endif
} }
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment