9 |
# modified by aja 01/00 |
# modified by aja 01/00 |
10 |
|
|
11 |
# Default lists |
# Default lists |
12 |
set DISABLE = ( aim autodiff cal cost ctrl ecco exf grdchk flt ptracers seaice therm_seaice bulk_force) |
if (! $?DISABLE) set DISABLE = ( aim aim_v23 admtlm autodiff cal cost ctrl ecco exf grdchk flt land ptracers seaice therm_seaice bulk_force dic gchem ) |
13 |
set DEFINES = ( ) |
if (! $?ENABLE) set ENABLE = ( ) |
14 |
set ENABLE = ( ) |
if (! $?DEFINES) set DEFINES = ( ) |
15 |
set MODS = ( ) |
if (! $?MODS) set MODS = ( ) |
16 |
|
|
17 |
# Grab variables/lists from .genmakerc |
# Grab variables/lists from .genmakerc |
18 |
if (-r .genmakerc) source .genmakerc |
if (-r .genmakerc) source .genmakerc |
100 |
set include_jam_libs |
set include_jam_libs |
101 |
echo "Including paths to JAM libraries" |
echo "Including paths to JAM libraries" |
102 |
breaksw |
breaksw |
103 |
|
case -arpack: |
104 |
|
echo "Enabling ARPACK libraries" |
105 |
|
set USEARPACK |
106 |
|
breaksw |
107 |
case -fc: |
case -fc: |
108 |
case -fc=: |
case -fc=: |
109 |
echo "To change the compiler (\$FC) you must specify one with -fc=" |
echo "To change the compiler (\$FC) you must specify one with -fc=" |
117 |
set FC = ( `echo $arg | sed 's/-fc=//' `) |
set FC = ( `echo $arg | sed 's/-fc=//' `) |
118 |
breaksw |
breaksw |
119 |
case -help: |
case -help: |
120 |
echo "usage: $0 [-help] [-makefile[=...]] [-platform=...] [-mpi] [-jam] [-disable=pkg1[,pkg2,...]] [-enable=pkg1[,pkg2,...]] [-mods=dir1[,dir2,...]] [-rootdir=dir]" |
echo "usage: $0 [-help] [-makefile[=...]] [-platform=...] [-mpi] [-jam] [-arpack] [-disable=pkg1[,pkg2,...]] [-enable=pkg1[,pkg2,...]] [-mods=dir1[,dir2,...]] [-rootdir=dir]" |
121 |
cat << EOF |
cat << EOF |
122 |
|
|
123 |
$0 is used to generate the Makefile in the current directory. |
$0 is used to generate the Makefile in the current directory. |
380 |
# set DEFINES = ( ${DEFINES} '-UALLOW_USE_MPI -UALWAYS_USE_MPI' ) |
# set DEFINES = ( ${DEFINES} '-UALLOW_USE_MPI -UALWAYS_USE_MPI' ) |
381 |
endif |
endif |
382 |
|
|
383 |
|
if ($?USEARPACK) then |
384 |
|
set USEARPACK = ( '+arpack' ) |
385 |
|
set LIBS = ( '-L/usr/lib -larpack -llapack' ) |
386 |
|
else |
387 |
|
set USEARPACK |
388 |
|
endif |
389 |
|
|
390 |
# Platform specific options |
# Platform specific options |
391 |
switch ($platform$USEMPI) |
switch ($platform$USEMPI$USEARPACK) |
392 |
case OSF1+mpi: |
case OSF1+mpi: |
393 |
#ph: e.g. halem.gsfc.nasa.gov |
#ph: e.g. halem.gsfc.nasa.gov |
394 |
echo "Configuring for DEC Alpha with MPI" |
echo "Configuring for DEC Alpha with MPI" |
559 |
set NOOPTFILES = ( 'barrier.F different_multiple.F' \ |
set NOOPTFILES = ( 'barrier.F different_multiple.F' \ |
560 |
'external_fields_load.F' ) |
'external_fields_load.F' ) |
561 |
breaksw |
breaksw |
562 |
|
case Linux-ia64+mpi: |
563 |
|
echo "Configuring with MPI" |
564 |
|
case Linux-ia64: |
565 |
|
echo "Configuring for " $platform |
566 |
|
set LN = ( '/bin/ln -s' ) |
567 |
|
set CPP = ( '/lib/cpp -traditional -P' ) |
568 |
|
set DEFINES = ( ${DEFINES} '-D_BYTESWAPIO -DWORDLENGTH=4' ) |
569 |
|
set FC = ( 'efc' ) |
570 |
|
set FFLAGS = ( '-WB -Vaxlib -u -w' ) |
571 |
|
set FOPTIM = ( '-O2 ' ) |
572 |
|
set LINK = ( 'efc' ) |
573 |
|
set LIBS = ( '-lmpi -lscs -lpthread' ) |
574 |
|
breaksw |
575 |
case Linux-alpha+mpi: |
case Linux-alpha+mpi: |
576 |
echo "Configuring with MPI" |
echo "Configuring with MPI" |
577 |
set LIBS = ( '-L/usr/local/lib/LINUX/ch_p4/ -lfmpich -lmpich' ) |
set LIBS = ( '-L/usr/local/lib/LINUX/ch_p4/ -lfmpich -lmpich' ) |
633 |
set FOPTIM = ( '-O3 -align' ) |
set FOPTIM = ( '-O3 -align' ) |
634 |
#P3 set FOPTIM = ( $FOPTIM '-tpp6 -xWKM' ) |
#P3 set FOPTIM = ( $FOPTIM '-tpp6 -xWKM' ) |
635 |
#P4 set FOPTIM = ( $FOPTIM '-tpp7 -xWKM' ) |
#P4 set FOPTIM = ( $FOPTIM '-tpp7 -xWKM' ) |
636 |
set LIBS = ( '-lPEPCF90' ) |
set LIBS = ( ${LIBS} '-lPEPCF90' ) |
637 |
breaksw |
breaksw |
638 |
default: |
default: |
639 |
echo Error: Linux compiler not recognized: \$FC=$FC |
echo Error: Linux compiler not recognized: \$FC=$FC |
735 |
# 'external_fields_load.F' ) |
# 'external_fields_load.F' ) |
736 |
set RMFILES = ( 'rii_files' ) |
set RMFILES = ( 'rii_files' ) |
737 |
breaksw |
breaksw |
738 |
|
case aer-linux-cluster+mpi |
739 |
|
echo "Configuring for " $platform |
740 |
|
set LN = ( '/bin/ln -s' ) |
741 |
|
set CPP = ( '/lib/cpp -traditional -P' ) |
742 |
|
set DEFINES = ( ${DEFINES} '-DWORDLENGTH=4' ) |
743 |
|
set FC = ( '/opt/mpich/bin/mpif77' ) |
744 |
|
set LINK = ( '/opt/mpich/bin/mpif77' ) |
745 |
|
set FFLAGS = ( '-byteswapio -r8 -Mnodclchk -Mextend' ) |
746 |
|
set FOPTIM = ( '-tp p6 -v -O2 -Munroll -Mvect=cachesize:512000,transform -Kieee' ) |
747 |
|
set LIBS = ( '-L/opt/mpich/lib/ -lfmpich -lmpich' ) |
748 |
|
set INCLUDES = ( '-I/opt/mpich/include' ) |
749 |
|
breaksw |
750 |
|
case gfdl-sgi-o3k |
751 |
|
echo "Configuring for " $platform |
752 |
|
set DEFINES = ( ${DEFINES} '-DTARGET_SGI -DWORDLENGTH=4' ) |
753 |
|
set FFLAGS = ( 'extend_source -mp -mpio -bytereclen -mips4 -r8 -static' ) |
754 |
|
set FOPTIM = ( '-O3' ) |
755 |
|
set LIBS = ( '-lmpi' ) |
756 |
|
set INCLUDES = ( '-I/opt/mpt/1510/usr/include' ) |
757 |
|
breaksw |
758 |
|
default: |
759 |
|
echo "Error: platform not recognized: uname -p = " $platform$USEMPI |
760 |
|
exit |
761 |
|
breaksw |
762 |
default: |
default: |
763 |
echo "Error: platform not recognized: uname -p = " $platform$USEMPI |
echo "Error: platform not recognized: uname -p = " $platform$USEMPI |
764 |
exit |
exit |
976 |
@make Clean |
@make Clean |
977 |
-find \$(EXEDIR) -name "*.meta" -exec rm {} \; |
-find \$(EXEDIR) -name "*.meta" -exec rm {} \; |
978 |
-find \$(EXEDIR) -name "*.data" -exec rm {} \; |
-find \$(EXEDIR) -name "*.data" -exec rm {} \; |
979 |
|
-find \$(EXEDIR) -name "fort.*" -exec rm {} \; |
980 |
-rm -f \$(EXECUTABLE) |
-rm -f \$(EXECUTABLE) |
981 |
|
|
982 |
makefile: |
makefile: |