Issuing rollback() due to DESTROY without explicit disconnect() of DBD::mysql::db handle dbname=MITgcm at /usr/local/share/lxr/lib/LXR/Common.pm line 1224.
Last-Modified: Mon, 24 Nov 2024 06:12:06 GMT
Content-Type: text/html; charset=utf-8
MITgcm/MITgcm/verification/global_with_exf/input/prepare_run
f4722fe53f Mart*0001 #! /usr/bin/env bash
00020003 #- in order to save disc space, take *.bin files
0004 #- from this dir:
0005 fromDir="../../tutorial_global_oce_latlon/input"
00060007 fileList=`( cd $fromDir ; echo *.bin )`
00080009 #echo 'fileList=' $fileList
0010deacece587 Oliv*0011 #- and do a symbolic link in the current directory
f4722fe53f Mart*0012 # (if the file does not already exist)
0013 if test -d $fromDir ; then
0014 lnkList='files:'
0015 for xx in $fileList
0016 do
deacece587 Oliv*0017 if test -r ${fromDir}/$xx ; then
0018 if test ! -r $xx ; then
f4722fe53f Mart*0019 lnkList=${lnkList}" "$xx
0020 ln -sf ${fromDir}/$xx .
0021 fi
0022 fi
0023 done
0024 echo ' link' $lnkList "from dir:" $fromDir
deacece587 Oliv*0025 #- SST file: copy last month (=Dec) and append to the beginning
0026 xx='lev_sst' ; inpFile=${fromDir}/${xx}.bin ; tmpFile=${xx}_startdec.tmp
0027 if test -f $inpFile -a $tmpFile -ot $inpFile ; then
0028 dd if=$inpFile bs=14400 count=1 skip=11 of=${xx}_dec.tmp 2> /dev/null
0029 cat ${xx}_dec.tmp $inpFile > $tmpFile
0030 #rm -rf ${xx}_dec.tmp
0031 echo ' + add 1 record to' $inpFile '-->' $tmpFile
0032 fi
f4722fe53f Mart*0033 else
0034 echo " Error:" $fromDir "not a directory"
0035 fi
0036