annotate src/fftw-3.3.5/mpi/f03-wrap.sh @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents 7867fa7e1b6b
children
rev   line source
cannam@127 1 #! /bin/sh
cannam@127 2
cannam@127 3 # Script to generate Fortran 2003 wrappers for FFTW's MPI functions. This
cannam@127 4 # is necessary because MPI provides no way to deal with C MPI_Comm handles
cannam@127 5 # from Fortran (where MPI_Comm == integer), but does provide a way to
cannam@127 6 # deal with Fortran MPI_Comm handles from C (via MPI_Comm_f2c). So,
cannam@127 7 # every FFTW function that takes an MPI_Comm argument needs a wrapper
cannam@127 8 # function that takes a Fortran integer and converts it to MPI_Comm.
cannam@127 9
cannam@127 10 echo "/* Generated automatically. DO NOT EDIT! */"
cannam@127 11 echo
cannam@127 12
cannam@127 13 echo "#include \"fftw3-mpi.h\""
cannam@127 14 echo "#include \"ifftw-mpi.h\""
cannam@127 15 echo
cannam@127 16
cannam@127 17 # Declare prototypes using FFTW_EXTERN, important for Windows DLLs
cannam@127 18 grep -v 'mpi.h' fftw3-mpi.h | gcc -E - |grep "fftw_mpi_init" |tr ';' '\n' | grep "MPI_Comm" | perl genf03-wrap.pl | grep "MPI_Fint" | sed 's/^/FFTW_EXTERN /;s/$/;/'
cannam@127 19
cannam@127 20 grep -v 'mpi.h' fftw3-mpi.h | gcc -E - |grep "fftw_mpi_init" |tr ';' '\n' | grep "MPI_Comm" | perl genf03-wrap.pl
cannam@127 21
cannam@127 22