We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a36b729 commit a451acbCopy full SHA for a451acb
2 files changed
bin/install-fftw.sh
@@ -3,7 +3,7 @@
3
# This script installs FFTW locally. It may need to environment
4
# variables to work, like 'export CC=gcc' in ARCHER.
5
6
-FFTW=fftw-3.3.8
+FFTW=fftw-3.3.10
7
8
set -e
9
fidimag/common/dipolar/demag.c
@@ -479,7 +479,9 @@ void finalize_plan(fft_demag_plan *restrict plan) {
479
fftw_free(plan->hy);
480
fftw_free(plan->hz);
481
482
- fftw_cleanup_threads();
+ // Note: fftw_cleanup_threads() is a global cleanup function and should
483
+ // NOT be called per-object. It should only be called once at program exit.
484
+ // Calling it here causes crashes when multiple FFTDemag objects are used.
485
486
free(plan);
487
}
0 commit comments