Back to home page

MITgcm

 
 

    


Warning, /verification/tutorial_dic_adjoffline/input_ad/prepare_run is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit a1d0e455 on 2022-12-09 03:00:25 UTC
11c3150c71 Mart*0001 #! /usr/bin/env bash
                0002 
a1d0e455fd Hann*0003 #- in order to save disc space, take some shared *.bin files
                0004 #- from this dir:
                0005 fromDir="../../tutorial_global_oce_biogeo/input"
                0006 
                0007 fileList='bathy.bin fice.bin sillev1.bin tren_speed.bin'
                0008 
                0009 #- and do a symbolic link in the current directory
                0010 #   (if the file does not already exist)
                0011 if test -d $fromDir ; then
                0012   lnkList='files:'
                0013   for xx in $fileList
                0014   do
                0015     if test -r ${fromDir}/$xx ; then
                0016       if test ! -r $xx ; then
                0017         lnkList=${lnkList}" "$xx
                0018         ln -sf ${fromDir}/$xx .
                0019       fi
                0020     fi
                0021   done
                0022   echo ' link' $lnkList "from dir:" $fromDir
                0023 else
                0024   echo " Error:" $fromDir "not a directory"
                0025 fi
                0026 
11c3150c71 Mart*0027 #- And take file 'ones_64b.bin'
                0028 #- from this dir:
                0029 fromDir="../../isomip/input_ad"
                0030 
                0031 fileList='ones_64b.bin'
                0032 
                0033 #- and do a symbolic link in the current directory
                0034 #   (if the file does not already exist)
                0035 if test -d $fromDir ; then
                0036   lnkList='files:'
                0037   for xx in $fileList
                0038   do
                0039     if test -r ${fromDir}/$xx ; then
                0040       if test ! -r $xx ; then
                0041         lnkList=${lnkList}" "$xx
                0042         ln -sf ${fromDir}/$xx .
                0043       fi
                0044     fi
                0045   done
                0046   echo ' link' $lnkList "from dir:" $fromDir
                0047 else
                0048   echo " Error:" $fromDir "not a directory"
                0049 fi