annotate src/fftw-3.3.8/mpi/f03-wrap.sh @ 84:08ae793730bd

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