Back to home page

MITgcm

 
 

    


Warning, /verification/global_ocean.cs32x15/input.in_p/prepare_run is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit 6fc9daf8 on 2026-03-24 23:05:07 UTC
0320e25227 Mart*0001 #! /usr/bin/env bash
                0002 
15ec4b1e94 Jean*0003 #- in order to save disc space, take grid files
                0004 #- from this dir:
                0005 fromDir="../../tutorial_held_suarez_cs/input"
                0006 
                0007 fileList=`( cd $fromDir ; ls grid_cs32.face00?.bin )`
                0008 #echo 'fileList=' $fileList
0320e25227 Mart*0009 
                0010 #- from this dir:
                0011 
                0012 #- and do a symbolic link in the current directory
                0013 #   (if the file does not already exist)
                0014 if test -d $fromDir ; then
                0015   lnkList='files:'
                0016   for xx in $fileList
                0017   do
                0018     if test -r ${fromDir}/$xx ; then
                0019       if test ! -r $xx ; then
                0020         lnkList=${lnkList}" "$xx
                0021         ln -sf ${fromDir}/$xx .
                0022       fi
                0023     fi
                0024   done
                0025   echo ' link' $lnkList "from dir:" $fromDir
                0026 else
                0027   echo " Error:" $fromDir "not a directory"
                0028 fi
                0029 
15ec4b1e94 Jean*0030 #- in order to save disc space, take *.bin files
                0031 #- from this dir:
                0032 fromDir="../input.icedyn"
                0033 
                0034 fileList=`( cd $fromDir ; ls *.bin )`
0320e25227 Mart*0035 
15ec4b1e94 Jean*0036 #- and do a symbolic link in the current directory
                0037 #   (if the file does not already exist)
                0038 if test -d $fromDir ; then
                0039   lnkList='files:'
                0040   for xx in $fileList
                0041   do
                0042     if test -r ${fromDir}/$xx ; then
                0043       if test ! -r $xx ; then
                0044         lnkList=${lnkList}" "$xx
                0045         ln -sf ${fromDir}/$xx .
                0046       fi
                0047     fi
                0048   done
                0049   echo ' link' $lnkList "from dir:" $fromDir
                0050 else
                0051   echo " Error:" $fromDir "not a directory"
                0052 fi
                0053 
                0054 #- in order to save disc space, take *.bin and data.* files
0320e25227 Mart*0055 #- from this dir:
                0056 fromDir="../input.seaice"
                0057 
6fc9daf8e1 Jean*0058 fileList=`( cd $fromDir ; ls *.bin data.exf data.seaice )`
15ec4b1e94 Jean*0059 
0320e25227 Mart*0060 #- and do a symbolic link in the current directory
                0061 #   (if the file does not already exist)
                0062 if test -d $fromDir ; then
                0063   lnkList='files:'
                0064   for xx in $fileList
                0065   do
                0066     if test -r ${fromDir}/$xx ; then
                0067       if test ! -r $xx ; then
                0068         lnkList=${lnkList}" "$xx
                0069         ln -sf ${fromDir}/$xx .
                0070       fi
                0071     fi
                0072   done
                0073   echo ' link' $lnkList "from dir:" $fromDir
                0074 else
                0075   echo " Error:" $fromDir "not a directory"
                0076 fi