Ignore:
Timestamp:
Nov 8, 2016, 4:36:05 PM (8 years ago)
Author:
ymipsl
Message:

Update ICOSA_LMDZ configuration environnement for ADA

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dynamico_lmdz/aquaplanet/ICOSA_LMDZ/make_icosa_lmdz

    r3931 r3966  
    33
    44export ROOT=$PWD
    5 
     5set -x
    66echo $0 $* > rebuild_all
    77chmod a+x rebuild_all
     
    1616arch_defined="FALSE"
    1717parallel_defined="FALSE"
    18 arch_path="arch"
     18arch_path="../ARCH"
     19arch_default_path="arch"
    1920parallel="none"
    2021physics="none"
     
    8485  rm -f arch.fcm
    8586  rm -f arch.env
    86   ln -s $arch_path/arch-${arch}.path ./arch.path
    87   ln -s $arch_path/arch-${arch}.fcm  ./arch.fcm
     87
     88  if test -f $arch_path/arch-${arch}.path
     89  then
     90    ln -s $arch_path/arch-${arch}.path arch.path
     91  elif test -f $arch_default_path/arch-${arch}.path
     92  then
     93    ln -s $arch_default_path/arch-${arch}.path arch.path
     94  fi
     95       
     96  if test -f $arch_path/arch-${arch}.fcm
     97  then
     98    ln -s $arch_path/arch-${arch}.fcm arch.fcm
     99  elif test -f $arch_default_path/arch-${arch}.fcm
     100  then
     101    ln -s $arch_default_path/arch-${arch}.fcm arch.fcm
     102  fi
     103
    88104  if test -f $arch_path/arch-${arch}.env
    89     then
    90       ln -s $arch_path/arch-${arch}.env arch.env
    91     else
    92       ln -s .void_file arch.env
    93     fi
     105  then
     106    ln -s $arch_path/arch-${arch}.env arch.env
     107  elif test -f $arch_default_path/arch-${arch}.env
     108  then
     109    ln -s $arch_default_path/arch-${arch}.env arch.env
     110  else
     111    ln -s .void_file arch.env
     112  fi
    94113  source arch.env
    95114  source arch.path
    96115else
    97   echo "Veuillez definir une architecture cible"
     116  echo "Please define a target architecture"
    98117  exit 1
    99118fi
     
    169188
    170189    cd ../IOIPSL
    171     ./makeioipsl_fcm -$compil_mode -parallel -arch $arch -j $job $full_flag  || exit 1
     190    ./makeioipsl_fcm -$compil_mode -parallel -arch $arch -arch_path $arch_path -j $job $full_flag  || exit 1
    172191    cd -
    173192
    174193    cd ../XIOS
    175     ./make_xios --$compil_mode --arch $arch --job $job $full_flag2 || exit 1
     194    ./make_xios --$compil_mode --arch $arch --arch_path $arch_path --job $job $full_flag2 || exit 1
    176195    cd -
    177196
     
    179198    then
    180199        cd ../ORCHIDEE
    181         ./makeorchidee_fcm -$compil_mode -parallel $parallel -xios2 -arch $arch -j $job $full_flag  || exit 1
     200        ./makeorchidee_fcm -$compil_mode -parallel $parallel -xios2 -arch $arch -arch_path $arch_path -j $job $full_flag  || exit 1
    182201        cd -
    183202    fi
     
    189208        lmdz_veget="orchidee2.0"
    190209    fi
    191     ./makelmdz_fcm gcm -$compil_mode -mem -parallel $parallel -nodyn -io xios -v $lmdz_veget -arch $arch -j $job $full_flag || exit 1
     210    ./makelmdz_fcm gcm -$compil_mode -mem -parallel $parallel -nodyn -io xios -v $lmdz_veget -arch $arch -arch_path $arch_path -j $job $full_flag || exit 1
    192211    cd -
    193212
    194213    cd ../ICOSAGCM
    195     ./make_icosa -$compil_mode -parallel $parallel -external_ioipsl -with_xios -arch $arch -job $job $full_flag || exit 1
     214    ./make_icosa -$compil_mode -parallel $parallel -external_ioipsl -with_xios -arch $arch -arch_path $arch_path -job $job $full_flag || exit 1
    196215    cd -
    197216fi
Note: See TracChangeset for help on using the changeset viewer.