Changeset 497


Ignore:
Timestamp:
11/08/16 16:18:20 (8 years ago)
Author:
ymipsl
Message:

Add arch_path in make_icosa

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/trunk/make_icosa

    r488 r497  
    1313arch_defined="FALSE" 
    1414parallel_defined="FALSE" 
     15arch_default_path="arch" 
    1516arch_path="arch" 
    1617parallel="none" 
     
    8990  rm -f arch.fcm 
    9091  rm -f arch.env 
    91   ln -s $arch_path/arch-${arch}.path ./arch.path 
    92   ln -s $arch_path/arch-${arch}.fcm  ./arch.fcm 
     92 
     93  if test -f $arch_path/arch-${arch}.path 
     94  then 
     95    ln -s $arch_path/arch-${arch}.path arch.path 
     96  elif test -f $arch_default_path/arch-${arch}.path 
     97  then 
     98    ln -s $arch_default_path/arch-${arch}.path arch.path 
     99  fi 
     100         
     101  if test -f $arch_path/arch-${arch}.fcm 
     102  then 
     103    ln -s $arch_path/arch-${arch}.fcm arch.fcm 
     104  elif test -f $arch_default_path/arch-${arch}.fcm 
     105  then 
     106    ln -s $arch_default_path/arch-${arch}.fcm arch.fcm 
     107  fi 
     108 
    93109  if test -f $arch_path/arch-${arch}.env 
    94     then 
    95       ln -s $arch_path/arch-${arch}.env arch.env 
    96     else 
    97       ln -s .void_file arch.env 
    98     fi 
     110  then 
     111    ln -s $arch_path/arch-${arch}.env arch.env 
     112  elif test -f $arch_default_path/arch-${arch}.env 
     113  then 
     114    ln -s $arch_default_path/arch-${arch}.env arch.env 
     115  else 
     116    ln -s .void_file arch.env 
     117  fi 
    99118  source arch.env 
    100119  source arch.path 
Note: See TracChangeset for help on using the changeset viewer.