New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 1985 for branches/DEV_r1879_FCM/NEMOGCM/TOOLS/makenemo_fcm.sh – NEMO

Ignore:
Timestamp:
2010-07-05T17:54:00+02:00 (14 years ago)
Author:
flavoni
Message:

commit script to compile with FCM, see ticket: #685

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_r1879_FCM/NEMOGCM/TOOLS/makenemo_fcm.sh

    r1972 r1985  
    8888#- 
    8989#- FCM and functions location --- 
    90 #RB Should we add fcm as a vendor ??? 
    91 #export PATH=${MAIN_DIR}/modeles/fcm/bin:$PATH 
     90export PATH=${MAIN_DIR}/EXTERNAL/fcm/bin:$PATH 
    9291 
    9392#- 
     
    149148export NEMO_TDIR=${NEMO_TDIR:-$CONFIG_DIR} 
    150149 
    151 #- 
    152 #- Find fcm --- 
    153 . Fcheck_script.sh fcm || exit 
    154  
    155 #- 
    156150#- When used for the first time, choose a compiler --- 
    157 . Fcheck_archfile.sh ${CMP_NAM} || exit 
     151. ${TOOLS_DIR}/Fcheck_archfile.sh ${CMP_NAM} || exit 
    158152 
    159153#- 
    160154#- Choose a default configuration if needed --- 
    161155#- ORCA2_LIM or last one used --- 
    162 . Fcheck_config.sh ${NEW_CONF} || exit  
     156. ${TOOLS_DIR}/Fcheck_config.sh ${NEW_CONF} || exit  
    163157 
    164158if [ ${#NEW_CONF} -eq 0 ] ; then 
     
    166160      echo "You are  installing a new configuration" 
    167161      ind=0 
    168       . Fread_dir.sh OPA_SRC  YES  
    169       . Fread_dir.sh LIM_SRC_2 YES  
    170       . Fread_dir.sh LIM_SRC_3 NO   
    171       . Fread_dir.sh TOP_SRC  NO   
    172       . Fread_dir.sh C1D_SRC  YES  
    173       . Fread_dir.sh NST_SRC  YES  
    174       . Fread_dir.sh OFF_SRC  NO   
     162      . ${TOOLS_DIR}/Fread_dir.sh OPA_SRC YES  
     163      . ${TOOLS_DIR}/Fread_dir.sh LIM_SRC_2  YES  
     164      . ${TOOLS_DIR}/Fread_dir.sh LIM_SRC_3    NO   
     165      . ${TOOLS_DIR}/Fread_dir.sh TOP_SRC  NO   
     166      . ${TOOLS_DIR}/Fread_dir.sh C1D_SRC YES  
     167      . ${TOOLS_DIR}/Fread_dir.sh NST_SRC YES  
     168      . ${TOOLS_DIR}/Fread_dir.sh OFF_SRC  NO   
    175169      REF_CONF=ORCA2_LIM 
    176170   elif [ ${#NEM_SUBDIR} -gt 0 ] && [ ${#REF_CONF} -eq 0 ]; then 
     
    180174   elif [ ${#NEM_SUBDIR} -eq 0 ] && [ ${#REF_CONF} -gt 0 ]; then 
    181175      echo "You are  installing a new configuration based on ${REF_CONF}" 
    182       Fcopy_dir.sh ${REF_CONF}   
     176      ${TOOLS_DIR}/Fcopy_dir.sh ${REF_CONF}   
    183177   fi 
    184178   NEW_CONF=${x_n} 
    185     . Fmake_config.sh ${NEW_CONF} ${REF_CONF} 
     179    . ${TOOLS_DIR}/Fmake_config.sh ${NEW_CONF} ${REF_CONF} 
    186180else 
    187181   sed -e "/${NEW_CONF} /d"  ${TOOLS_DIR}/cfg.txt >  ${TOOLS_DIR}/cfg.tmp 
     
    197191#- Clean links and librairies --- 
    198192#- Creating the good links, at first on OPA_SRC --- 
    199 . Fmake_WORK.sh ${NEW_CONF} ${TAB[*]} || exit 
    200  
    201 ##SF   exit 
    202  
    203 . Fmake_bld.sh ${NEW_CONF}  ${NEMO_TDIR} || exit 
     193. ${TOOLS_DIR}/Fmake_WORK.sh ${NEW_CONF} ${TAB[*]} || exit 
     194 
     195. ${TOOLS_DIR}/Fmake_bld.sh ${NEW_CONF}  ${NEMO_TDIR} || exit 
    204196 
    205197#- At this stage the configuration has beeen chosen 
    206198#- We look after agrif 
    207199grep key_agrif ${TOOLS_DIR}/cpp.fcm && export AGRIFUSE=1 
    208 . Fprep_agrif.sh ${NEW_CONF} ${NEMO_TDIR} || exit 
     200. ${TOOLS_DIR}/Fprep_agrif.sh ${NEW_CONF} ${NEMO_TDIR} || exit 
    209201 
    210202#- 
     
    231223#- 
    232224#- Unset variables 
    233 Fclean_var.sh 
     225${TOOLS_DIR}/Fclean_var.sh 
    234226 
    235227 
Note: See TracChangeset for help on using the changeset viewer.