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 7646 for trunk/NEMOGCM/TOOLS/COMPILE/Fcheck_archfile.sh – NEMO

Ignore:
Timestamp:
2017-02-06T10:25:03+01:00 (7 years ago)
Author:
timgraham
Message:

Merge of dev_merge_2016 into trunk. UPDATE TO ARCHFILES NEEDED for XIOS2.
LIM_SRC_s/limrhg.F90 to follow in next commit due to change of kind (I'm unable to do it in this commit).
Merged using the following steps:

1) svn merge --reintegrate svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/trunk .
2) Resolve minor conflicts in sette.sh and namelist_cfg for ORCA2LIM3 (due to a change in trunk after branch was created)
3) svn commit
4) svn switch svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/trunk
5) svn merge svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/branches/2016/dev_merge_2016 .
6) At this stage I checked out a clean copy of the branch to compare against what is about to be committed to the trunk.
6) svn commit #Commit code to the trunk

In this commit I have also reverted a change to Fcheck_archfile.sh which was causing problems on the Paris machine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/TOOLS/COMPILE/Fcheck_archfile.sh

    r4162 r7646  
    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 
    173 fi 
    174 have_lxios=$( sed -e "s/#.*$//" ${COMPIL_DIR}/$1 | grep -c "\-lxios" ) 
    175 if [[ ( $use_iom -eq 0 ) && ( $have_lxios -ge 1 ) ]] 
    176 then  
    177     sed -e "s/-lxios//g" ${COMPIL_DIR}/$1 > ${COMPIL_DIR}/tmp$$ 
    178     mv -f ${COMPIL_DIR}/tmp$$ ${COMPIL_DIR}/$1 
     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 
    179193fi 
    180194 
Note: See TracChangeset for help on using the changeset viewer.