Changeset 1136 for LMDZ4/branches


Ignore:
Timestamp:
Mar 27, 2009, 4:54:19 PM (16 years ago)
Author:
jghattas
Message:

Ajoute possibilite de donner le chemin en entree de makegcm_fcm. Si le chemin n'est pas donne, on suppose comme avant, que le chemin de fcm est deja dans le variable environement PATH.

YM+JG

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/LMDZ4-dev/makegcm_fcm

    r1132 r1136  
    2727set io=ioipsl
    2828set LIBPREFIX=""
     29set fcm_path=none
    2930
    3031set LMDGCM=`/bin/pwd`
     
    7273[-filtre NOMFILTRE]        : prend le filtre dans libf/NOMFILTRE (def: filtrez)
    7374[-link LINKS]              : liens optionels avec d'autres librairies
     75[-fcm_path path]           : chemin pour fcm (def: le chemin est suppose deja exister dans le PATH)
    7476 -m arch                   : nom de l'architecture cible
    7577 exec                      : exécutable généré
     
    132134        set LIB="$LIB $2" ; shift ; shift ; goto top
    133135
     136     case -fcm_path
     137       set fcm_path=$2 ; shift ; shift ; goto top
     138
    134139     case -m
    135140       set arch=$2 ; shift ; shift ; goto top
     
    141146endif
    142147
     148###############################################################
     149# mettre le chemin du fcm dans le path
     150###############################################################
     151if  ( "$fcm_path" != 'none' ) then
     152    setenv PATH ${fcm_path}:${PATH}
     153endif
     154
     155echo "Chemin du fcm utlise :"
     156which fcm
    143157
    144158###############################################################
Note: See TracChangeset for help on using the changeset viewer.