--- MITgcm/tools/build_options/linux_amd64_pgf90+mpi_greenplanet 2010/04/05 20:58:31 1.1 +++ MITgcm/tools/build_options/linux_amd64_pgf90+mpi_greenplanet 2010/04/06 11:39:44 1.2 @@ -1,6 +1,6 @@ #!/bin/bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/linux_amd64_pgf90+mpi_greenplanet,v 1.1 2010/04/05 20:58:31 yunx Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/linux_amd64_pgf90+mpi_greenplanet,v 1.2 2010/04/06 11:39:44 jmc Exp $ # $Name: $ # # tested on greenplanet.ps.uci.edu @@ -12,19 +12,24 @@ FC='mpif90' CC='mpicc' LINK='mpif90' -CPP='/usr/bin/cpp -P -traditional' MPI='true' + DEFINES='-DWORDLENGTH=4' - INCLUDES='-I/sopt/mpi/mpich/pgi/include -I/sopt/netcdf/netcdf3-gcc-serial/include' - LIBS='-L/sopt/mpi/mpich/pgi/lib -L/sopt/netcdf/netcdf3-gcc-serial/lib' +CPP='/usr/bin/cpp -P -traditional' +EXTENDED_SRC_FLAG='-Mextend' + +INCLUDES='-I/sopt/mpi/mpich/pgi/include -I/sopt/netcdf/netcdf3-gcc-serial/include' +LIBS='-L/sopt/mpi/mpich/pgi/lib -L/sopt/netcdf/netcdf3-gcc-serial/lib' if test "x$IEEE" = x ; then # No need for IEEE-754 - FFLAGS='-byteswapio -Mnodclchk -Mextend' + FFLAGS="$FFLAGS -byteswapio -Mnodclchk" FOPTIM='-O2 -Munroll' else # Try to follow IEEE-754 - FFLAGS='-byteswapio -r8 -Mnodclchk -Mextend' + FFLAGS="$FFLAGS -byteswapio -Mnodclchk" FOPTIM='-tp amd64 -O0 -Munroll -Kieee' fi +#- might want to use '-r8' for fizhi pkg: +#FFLAGS="$FFLAGS -r8"