Ignore:
Timestamp:
Sep 11, 2013, 11:45:01 AM (11 years ago)
Author:
Laurent Fairhead
Message:

Création d'une nouvelle testing:

merge des modifications du trunk entre r1796 et r1860


New testing version

merged modifications between r1796 and r1860 from the trunk

i.e.
svn merge -r1796:1860 http://svn.lmd.jussieu.fr/LMDZ/LMDZ5/trunk

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/makelmdz_fcm

    r1795 r1864  
    2929LIBPREFIX=""
    3030cosp=false
     31job=1
     32full=''
    3133
    3234LMDGCM=`/bin/pwd`
     
    7981[-filtre NOMFILTRE]        : use filtre from libf/NOMFILTRE (default: filtrez)
    8082[-link LINKS]              : additional links with other libraries
     83[-j n]                     : active parallel compiling on ntask
     84[-full]                    : full recompiling
    8185[-fcm_path path]           : path to the fcm tool (default: tools/fcm/bin)
    8286[-ext_src path]            : path to an additional set of routines to compile with the model
     
    147151      "-ext_src")
    148152          EXT_SRC=$2 ; shift ; shift ;;
     153      "-j")
     154          job=$2 ; shift ; shift ;;
     155      "-full")
     156          full="-full" ; shift ;;
    149157
    150158      "-arch")
     
    248256fi
    249257
    250 if [[ "$veget" == "orchidee2.0" ]]
    251 then
    252 # orchidee2.0 :
    253 # Compile with ORCHIDEE 2.0 (or more recent)
     258if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" ]
     259then
     260#NB: option 'true': for backward compatibility. To be used with ORCHIDEE tag 1.9-1.9.6
     261#    For this case, cpp flag ORCHIDEE_NOOPENMP must be added to the makelmdz_fcm arguments
     262#    option orchidee1.9 : Compile with ORCHIDEE version up to the inclusion of OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6
     263   INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"
    254264   CPP_KEY="$CPP_KEY CPP_VEGET"
    255    INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"
    256    LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}orchidee "
    257 elif [[ "$veget" == "orchidee1.9" ]]
    258 then
    259 # orchidee1.9 :
    260 # Compile with ORCHIDEE version up to the inclusion of OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6
    261    CPP_KEY="$CPP_KEY CPP_VEGET ORCHIDEE_NOOPENMP"
    262    INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"
    263    LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate -l${LIBPREFIX}parallel -l${LIBPREFIX}orglob"
    264 elif [[ "$veget" == "true" ]]
    265 then
    266 # true :
    267 # Obsolete, for backward compatibility. To be used with ORCHIDEE tag 1.9-1.9.6
    268 # For this case, cpp flag ORCHIDEE_NOOPENMP must be added to the makelmdz_fcm arguments
    269    CPP_KEY="$CPP_KEY CPP_VEGET"
    270    INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"
    271    LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate -l${LIBPREFIX}parallel -l${LIBPREFIX}orglob"
    272 elif [[ "$veget" != "false" ]]
    273 then
     265# temporary, for Orchidee versions 1.9.* (before openmp activation)
     266   if [[ "$veget" == "orchidee1.9" ]] ; then
     267      CPP_KEY="$CPP_KEY ORCHIDEE_NOOPENMP"
     268   fi
     269   if [[ "$veget" == "orchidee2.0" ]] ; then
     270      orch_libs="sechiba parameters stomate parallel orglob orchidee"
     271   else
     272      orch_libs="sechiba parameters stomate parallel orglob"
     273   fi
     274   LIB="${LIB} -L${ORCH_LIBDIR}"
     275   for lib in ${orch_libs} ; do
     276      if [ -f ${ORCH_LIBDIR}/lib${LIBPREFIX}$lib.a ] ; then
     277         LIB="${LIB} -l${LIBPREFIX}$lib "
     278      fi
     279   done
     280elif [[ "$veget" != "false" ]] ; then
    274281   echo "Option -v $veget does not exist"
    275282   echo "Use ./makelmdz_fcm -h for more information"
     
    468475
    469476rm -f $LIBOGCM/${arch}${SUFF_NAME}/.config/fcm.bld.lock
    470 ./build_gcm ${fcm_path}
     477./build_gcm ${fcm_path} -j $job $full
    471478
    472479rm -rf tmp_src
Note: See TracChangeset for help on using the changeset viewer.