Back to home page

MITgcm

 
 

    


Warning, /verification/cpl_aim+ocn/input_atm/prepare_run is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit a99d7059 on 2022-03-25 19:27:01 UTC
0b3a7d9aed Jean*0001 #! /usr/bin/env bash
                0002 
                0003 #- in order to save disc space, from this dir:
                0004 fromDir="../../aim.5l_cs/input.thSI"
                0005 #  link files:
                0006 fileList=`(cd $fromDir ; ls *.bin)`
                0007 
a99d705983 Jean*0008 #- and do a symbolic link in the current directory
0b3a7d9aed Jean*0009 #   (if the file does not already exist)
                0010 if test -d $fromDir ; then
                0011   lnkList='files:'
                0012   for xx in $fileList
                0013   do
a99d705983 Jean*0014     if test -r ${fromDir}/$xx ; then
                0015       if test ! -r $xx ; then
0b3a7d9aed Jean*0016         lnkList=${lnkList}" "$xx
                0017         ln -sf ${fromDir}/$xx .
                0018       fi
                0019     fi
                0020   done
                0021   echo ' link' $lnkList "from dir:" $fromDir
                0022 else
                0023   echo " Error:" $fromDir "not a directory"
                0024 fi
a99d705983 Jean*0025 
0b3a7d9aed Jean*0026 #- in order to save disc space, from this dir:
                0027 fromDir='../../tutorial_held_suarez_cs/input'
                0028 #  link files:
                0029 fileList=`(cd $fromDir ; ls *.face00?.bin)`
                0030 
a99d705983 Jean*0031 #- and do a symbolic link in the current directory
0b3a7d9aed Jean*0032 #   (if the file does not already exist)
                0033 if test -d $fromDir ; then
                0034   lnkList='files:'
                0035   for xx in $fileList
                0036   do
a99d705983 Jean*0037     if test -r ${fromDir}/$xx ; then
                0038       if test ! -r $xx ; then
0b3a7d9aed Jean*0039         lnkList=${lnkList}" "$xx
                0040         ln -sf ${fromDir}/$xx .
                0041       fi
                0042     fi
                0043   done
                0044   echo ' link' $lnkList "from dir:" $fromDir
                0045 else
                0046   echo " Error:" $fromDir "not a directory"
                0047 fi
6e4dfe59a1 Jean*0048 echo ''