15 |
# Turn off stack limit for FIZHI & AD-tests |
# Turn off stack limit for FIZHI & AD-tests |
16 |
ulimit -s unlimited |
ulimit -s unlimited |
17 |
# MPI test (for now, only with gfortran) |
# MPI test (for now, only with gfortran) |
|
#if test $MPI = 1 ; then |
|
18 |
export MPI_GCC_DIR=/srv/software/gcc/gcc-packages/gcc-4.4.5/mpich2/mpich2-1.3 |
export MPI_GCC_DIR=/srv/software/gcc/gcc-packages/gcc-4.4.5/mpich2/mpich2-1.3 |
19 |
export MPI_INC_DIR=$MPI_GCC_DIR/include |
export MPI_INC_DIR=$MPI_GCC_DIR/include |
20 |
export PATH="$PATH:$MPI_GCC_DIR/bin" |
export PATH="$PATH:$MPI_GCC_DIR/bin" |
|
#fi |
|
21 |
|
|
22 |
#- method to acces CVS: |
#- method to acces CVS: |
23 |
# export CVSROOT='/u/gcmpack' |
# export CVSROOT='/u/gcmpack' |
140 |
#-- set MPI command: |
#-- set MPI command: |
141 |
if test $MPI = 1 ; then |
if test $MPI = 1 ; then |
142 |
if test $typ = 'mpa' ; then |
if test $typ = 'mpa' ; then |
143 |
#EXE="mpirun -np 2 ./mitgcmuv_ad" |
EXE="mpirun -np TR_NPROC ./mitgcmuv_ad" |
|
EXE="mpirun -np XX ./mitgcmuv_ad" |
|
144 |
else |
else |
145 |
#EXE="mpirun -np 2 ./mitgcmuv" |
EXE="mpirun -np TR_NPROC ./mitgcmuv" |
|
EXE="mpirun -np XX ./mitgcmuv" |
|
146 |
fi |
fi |
147 |
fi |
fi |
148 |
|
|
173 |
comm="$comm -of=$OPTFILE" |
comm="$comm -of=$OPTFILE" |
174 |
fi |
fi |
175 |
if test $MPI = 1 ; then echo " (EXE='$EXE')" |
if test $MPI = 1 ; then echo " (EXE='$EXE')" |
|
#comm="$comm -mpi -command \"\$EXE\"" |
|
176 |
comm="$comm -MPI 6 -command \"\$EXE\"" |
comm="$comm -MPI 6 -command \"\$EXE\"" |
177 |
else echo '' ; fi |
else echo '' ; fi |
178 |
if test "x$option" != x ; then comm="$comm $option" ; fi |
if test "x$option" != x ; then comm="$comm $option" ; fi |