jasonlarkin / p3dfft

Automatically exported from code.google.com/p/p3dfft
GNU General Public License v3.0
0 stars 0 forks source link

Replace abort with MPI_ABORT #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As a user (M. Diehl) had pointed out p3dfft gives a compiler error when 
compiling with Intel and MPICH2:

/home/xxx/p3dfft/build/./setup.F90:41: undefined reference to `abort_' 

Ning explained that:
"'abort' is not part of standard Fortran but is supported by some
compiler as extension, such as gfortran. To compile the code, you can
simply replace it with Fortran stop statement or more appropriately
MPI_ABORT"

I tried to compile on Triton with Intel/MPICH2 and ran into the same error. 
Replacing abort with MPI_ABORT fixed the issue and allowed p3dfft to compile 
successfully. More details on MPI_ABORT here: 
http://www.mcs.anl.gov/research/projects/mpi/www/www3/MPI_Abort.html

configure argument used on Triton: ./configure --enable-intel --enable-fftw 
--with-fftw="$FFTWHOME" FCFLAGS="-132 -fpp" CFLAGS="" LDFLAGS="-lifcore -limf"

Original issue reported on code.google.com by d4p...@ucsd.edu on 19 Aug 2010 at 7:57

GoogleCodeExporter commented 9 years ago
Replaced abort with MPI_ABORT(MPI_COMM_WORLD, 0)

Original comment by d4p...@ucsd.edu on 19 Aug 2010 at 8:04

GoogleCodeExporter commented 9 years ago

Original comment by dmitry...@gmail.com on 26 Aug 2010 at 2:02