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 6957 for branches/2016/dev_r6409_SIMPLIF_2_usrdef – NEMO

Ignore:
Timestamp:
2016-09-26T15:20:19+02:00 (8 years ago)
Author:
flavoni
Message:

change Fcheck_archfile to compile tools with xiosÃ

Location:
branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/TOOLS/COMPILE
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/TOOLS/COMPILE/Fcheck_archfile.sh

    r6955 r6957  
    166166 
    167167#- do we need xios library? 
    168 if [ "$2" != "nocpp" ]  
     168#- 2 cases:  
     169#- in CONFIG directory looking for key_iomput 
     170if [ "$1" == "arch_nemo.fcm" ] 
    169171then 
    170     use_iom=$( sed -e "s/#.*$//" ${COMPIL_DIR}/$2 | grep -c key_iomput ) 
     172    if [ "$2" != "nocpp" ]  
     173    then 
     174        use_iom=$( sed -e "s/#.*$//" ${COMPIL_DIR}/$2 | grep -c key_iomput ) 
     175    else 
     176        use_iom=0 
     177    fi 
     178    have_lxios=$( sed -e "s/#.*$//" ${COMPIL_DIR}/$1 | grep -c "\-lxios" ) 
     179    if [[ ( $use_iom -eq 0 ) && ( $have_lxios -ge 1 ) ]] 
     180    then  
     181        sed -e "s/-lxios//g" ${COMPIL_DIR}/$1 > ${COMPIL_DIR}/tmp$$ 
     182        mv -f ${COMPIL_DIR}/tmp$$ ${COMPIL_DIR}/$1 
     183    fi 
     184#- in TOOLS directory looking for USE xios 
    171185else 
    172     use_iom=0 
     186    use_iom=$( egrep --exclude-dir=.svn -r USE ${NEW_CONF}/src/* | grep -c xios ) 
     187    have_lxios=$( sed -e "s/#.*$//" ${COMPIL_DIR}/$1 | grep -c "\-lxios" ) 
     188    if [[ ( $use_iom -eq 0 ) || ( $have_lxios != 1 ) ]] 
     189    then  
     190        sed -e "s/-lxios//g" ${COMPIL_DIR}/$1 > ${COMPIL_DIR}/tmp$$ 
     191        mv -f ${COMPIL_DIR}/tmp$$ ${COMPIL_DIR}/$1 
     192    fi 
    173193fi 
    174 have_lxios=$( sed -e "s/#.*$//" ${COMPIL_DIR}/$1 | grep -c "\-lxios" ) 
    175 #    for "DOMAINcfg" compilation 
    176 # SF 
    177 # if [[ ( $use_iom -eq 0 ) && ( $have_lxios -ge 1 ) ]] 
    178 # then  
    179 #     sed -e "s/-lxios//g" ${COMPIL_DIR}/$1 > ${COMPIL_DIR}/tmp$$ 
    180 #     mv -f ${COMPIL_DIR}/tmp$$ ${COMPIL_DIR}/$1 
    181 # fi 
    182194 
    183195#- do we need oasis libraries? 
  • branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/TOOLS/COMPILE/bld_tools.cfg

    r4865 r6957  
    2929bld::excl_dep        inc::netcdf.inc 
    3030bld::excl_dep        use::netcdf 
     31bld::excl_dep        use::xios 
    3132bld::excl_dep        h::netcdf.inc 
    3233bld::excl_dep        h::mpif.h 
  • branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/TOOLS/COMPILE/tools.txt

    r2281 r6957  
    1 REBUILD  
     1DOMAINcfg  
Note: See TracChangeset for help on using the changeset viewer.