diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f874e8..8cd7597 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,6 +37,8 @@ else() endif() if(LASP_USE_BLAS) + # link openblas + set(BLA_VENDOR OpenBLAS) find_package(BLAS REQUIRED) endif() diff --git a/lasp/c/lasp_fft.c b/lasp/c/lasp_fft.c index 46eeec5..310897d 100644 --- a/lasp/c/lasp_fft.c +++ b/lasp/c/lasp_fft.c @@ -215,7 +215,7 @@ void Fft_fft_single(const Fft* fft,const vd* timedata,vc* result) { /* For an even fft, the imaginary part of the Nyquist frequency * bin equals zero.*/ - if(likely(nfft%2 == 0)) { + if(islikely(nfft%2 == 0)) { result_ptr[nfft+1] = 0; } check_overflow_vx(fft->fft_work);