removed multithreaded FFTW, does not make a big time difference and will simplify linking when using PETSc

This commit is contained in:
Martin Diehl 2014-09-18 15:23:11 +00:00
parent 940244d931
commit f64418f29a
2 changed files with 2 additions and 7 deletions

View File

@ -227,11 +227,6 @@ subroutine utilities_init()
!--------------------------------------------------------------------------------------------------
! general initialization of FFTW (see manual on fftw.org for more details)
if (pReal /= C_DOUBLE .or. pInt /= C_INT) call IO_error(0_pInt,ext_msg='Fortran to C') ! check for correct precision in C
!$ if(DAMASK_NumThreadsInt > 0_pInt) then
!$ i = fftw_init_threads() ! returns 0 in case of problem
!$ if (i == 0_pInt) call IO_error(error_ID = 809_pInt)
!$ call fftw_plan_with_nthreads(DAMASK_NumThreadsInt)
!$ endif
call fftw_set_timelimit(fftw_timelimit) ! set timelimit for plan creation
!--------------------------------------------------------------------------------------------------

View File

@ -29,7 +29,7 @@ endif
ifdef PETSC_DIR
include $(PETSC_DIR)/conf/variables
INCLUDE_DIRS :=$(PETSC_FC_INCLUDES) -DPETSc -I../lib
LIBRARIES :=$(PETSC_WITH_EXTERNAL_LIB) -lfftw3
LIBRARIES :=$(PETSC_WITH_EXTERNAL_LIB)
COMPILERNAME ?= $(FC)
LINKERNAME ?= $(FLINKER)
else
@ -84,7 +84,7 @@ IMKL_COMPILER_gfortran :=gf
ifeq "$(OPENMP)" "ON"
OPENMP_FLAG_ifort =-openmp -openmp-report0 -parallel
OPENMP_FLAG_gfortran =-fopenmp
LIBRARIES +=-lfftw3_threads -lpthread
LIBRARIES +=-lpthread
ifeq "$(F90)" "ifort"
LIBRARIES +=-liomp5
endif