diff options
| author | hibby <d@vehibberd.com> | 2018-02-16 15:17:14 +0000 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2018-02-16 15:17:14 +0000 |
| commit | 37f727ac0746fd85504aa46c1f023c09b3eff33a (patch) | |
| tree | c8a7ce04545040a8f161ba279528730bd9a3e6ab /lib/chkfft3.f90 | |
| parent | d63dd8d081a6fcd0715cd13f26df59fb831769d2 (diff) | |
New upstream version 1.8.0+repackupstream/1.8.0+repack
Diffstat (limited to 'lib/chkfft3.f90')
| -rw-r--r-- | lib/chkfft3.f90 | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/chkfft3.f90 b/lib/chkfft3.f90 index d42203a8..cb9df062 100644 --- a/lib/chkfft3.f90 +++ b/lib/chkfft3.f90 @@ -56,13 +56,15 @@ program chkfft if(npatience.eq.4) nflags=FFTW_EXHAUSTIVE open(12,file='chkfft.out',status='unknown') - open(13,file='fftwf_wisdom.dat',status='unknown') if(nr.ne.0) then - call import_wisdom_from_file(isuccess,13) - if(isuccess.eq.0) then + isuccess=fftwf_import_wisdom_from_filename('fftwf_wisdom.dat'//char(0)) + if(isuccess.eq.1) then write(*,1010) -1010 format('Failed to import FFTW wisdom.') +1010 format('Imported FFTW wisdom.') + else + write(*,1012) +1012 format('Failed to import FFTW wisdom.') go to 999 endif endif @@ -164,10 +166,9 @@ program chkfft 900 continue if(nw.eq.1) then - rewind 13 - call export_wisdom_to_file(13) -! write(*,1070) -!1070 format(/'Exported FFTW wisdom') + ierr=fftwf_export_wisdom_to_filename('fftwf_wisdom.dat'//char(0)) + write(*,1070) +1070 format(/'Exported FFTW wisdom') endif call fftwf_destroy_plan(plan1) |
