| 22 |
export MPI_INC_DIR=$MPI_GCC_DIR/include |
export MPI_INC_DIR=$MPI_GCC_DIR/include |
| 23 |
export PATH="$PATH:$MPI_GCC_DIR/bin" |
export PATH="$PATH:$MPI_GCC_DIR/bin" |
| 24 |
|
|
| 25 |
#- method to acces CVS: |
#- method to access CVS: |
| 26 |
cmdCVS='cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack' |
cmdCVS='cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack' |
| 27 |
cmdCVS='cvs -d /u/gcmpack' |
cmdCVS='cvs -d /u/gcmpack' |
| 28 |
# export CVS_RSH=ssh |
# export CVS_RSH=ssh |
| 29 |
# cmdCVS='cvs -q -d :ext:jmc@mitgcm.org:/u/gcmpack' |
# cmdCVS='cvs -q -d :ext:jmc@mitgcm.org:/u/gcmpack' |
| 30 |
|
|
| 31 |
#- and which GitHub repository to use: |
#- which GitHub repository to use and how to access it: |
| 32 |
git_repo='MITgcm'; git_code='MITgcm' |
git_repo='MITgcm'; git_code='MITgcm' |
| 33 |
#git_repo='altMITgcm'; #git_code='MITgcm66h' |
#git_repo='altMITgcm'; #git_code='MITgcm66h' |
| 34 |
|
#-- |
| 35 |
|
#git_repo="https://github.com/$git_repo" |
| 36 |
|
git_repo="git://github.com/$git_repo" |
| 37 |
|
#git_repo="git@github.com:$git_repo" |
| 38 |
|
|
| 39 |
# checkOut=3 : clone from GitHub and make a new copy (if sepDir) |
# checkOut=3 : clone from GitHub and make a new copy (if sepDir) |
| 40 |
# =2 : update (git pull) repo and make a new copy code (switch to 2 if no repo) |
# =2 : update (git pull) repo and make a new copy code (switch to 2 if no repo) |
| 109 |
if [ $checkOut -eq 3 ] ; then |
if [ $checkOut -eq 3 ] ; then |
| 110 |
test -e $git_code && rm -rf $git_code |
test -e $git_code && rm -rf $git_code |
| 111 |
echo -n "Make a clone of $git_code from repo: $git_repo ..." |
echo -n "Make a clone of $git_code from repo: $git_repo ..." |
| 112 |
git clone https://github.com/$git_repo/${git_code}.git 2> $tmpFil |
git clone $git_repo/${git_code}.git 2> $tmpFil |
| 113 |
retVal=$? |
retVal=$? |
| 114 |
if test $retVal = 0 ; then |
if test $retVal = 0 ; then |
| 115 |
echo ' --> done!' |
echo ' --> done!' |
| 272 |
( cd verification/${exp2add} |
( cd verification/${exp2add} |
| 273 |
ln -s ../../../other_input/core2_cnyf . ) |
ln -s ../../../other_input/core2_cnyf . ) |
| 274 |
fi |
fi |
| 275 |
if test $exp2add = 'shelfice_remeshing' ; then |
#if test $exp2add = 'shelfice_remeshing' ; then |
| 276 |
echo " link dir 'other_input/remeshing_code' to 'extra_code'" | tee -a $tdir/output_$tt |
# echo " link dir 'other_input/remeshing_code' to 'extra_code'" | tee -a $tdir/output_$tt |
| 277 |
( cd verification/${exp2add} |
# ( cd verification/${exp2add} |
| 278 |
ln -s ../../../other_input/remeshing_code extra_code ) |
# ln -s ../../../other_input/remeshing_code extra_code ) |
| 279 |
fi |
#fi |
| 280 |
done |
done |
| 281 |
fi |
fi |
| 282 |
else |
else |