Back to home page

MITgcm

 
 

    


Warning, /verification/isomip/input_oad/prepare_run is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit 2e7aec99 on 2022-04-25 03:54:25 UTC
212d985908 Patr*0001 #! /usr/bin/env bash
                0002 
4977e4c9c3 Jean*0003 #- in order to save disc space, take *.bin files from this dir:
                0004 fromDir="../input"
                0005 
                0006 fileList=`( cd $fromDir ; ls bathy.box icetopo.exp1 phi0surf.exp1.jmd95z )`
                0007 
                0008 #echo 'fileList=' $fileList
                0009 
                0010 #- and do a symbolic link in the current directory
                0011 #   (if the file does not already exist)
                0012 if test -d $fromDir ; then
                0013   lnkList='files:'
                0014   for xx in $fileList
                0015   do
                0016     if test -r ${fromDir}/$xx ; then
                0017       if test ! -r $xx ; then
                0018         lnkList=${lnkList}" "$xx
                0019         ln -sf ${fromDir}/$xx .
                0020       fi
                0021     fi
                0022   done
                0023   echo ' link' $lnkList "from dir:" $fromDir
                0024 else
                0025   echo " Error:" $fromDir "not a directory"
                0026 fi
                0027 
                0028 #- an take pickup files from this dir:
212d985908 Patr*0029 fromDir="../input_ad"
                0030 
2e7aec9951 dngo*0031 fileList=`( cd $fromDir ; ls pickup* ones_64b.bin )`
212d985908 Patr*0032 
                0033 #echo 'fileList=' $fileList
                0034 
4977e4c9c3 Jean*0035 #- and do a symbolic link in the current directory
212d985908 Patr*0036 #   (if the file does not already exist)
                0037 if test -d $fromDir ; then
                0038   lnkList='files:'
                0039   for xx in $fileList
                0040   do
4977e4c9c3 Jean*0041     if test -r ${fromDir}/$xx ; then
                0042       if test ! -r $xx ; then
212d985908 Patr*0043         lnkList=${lnkList}" "$xx
                0044         ln -sf ${fromDir}/$xx .
                0045       fi
                0046     fi
                0047   done
                0048   echo ' link' $lnkList "from dir:" $fromDir
                0049 else
                0050   echo " Error:" $fromDir "not a directory"
                0051 fi