Changeset 1864 for LMDZ5/branches/testing/makelmdz_fcm
- Timestamp:
- Sep 11, 2013, 11:45:01 AM (11 years ago)
- Location:
- LMDZ5/branches/testing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/testing
- Property svn:mergeinfo changed
/LMDZ5/trunk merged: 1797-1799,1801-1811,1813-1834,1836,1838-1840,1842-1860
- Property svn:mergeinfo changed
-
LMDZ5/branches/testing/makelmdz_fcm
r1795 r1864 29 29 LIBPREFIX="" 30 30 cosp=false 31 job=1 32 full='' 31 33 32 34 LMDGCM=`/bin/pwd` … … 79 81 [-filtre NOMFILTRE] : use filtre from libf/NOMFILTRE (default: filtrez) 80 82 [-link LINKS] : additional links with other libraries 83 [-j n] : active parallel compiling on ntask 84 [-full] : full recompiling 81 85 [-fcm_path path] : path to the fcm tool (default: tools/fcm/bin) 82 86 [-ext_src path] : path to an additional set of routines to compile with the model … … 147 151 "-ext_src") 148 152 EXT_SRC=$2 ; shift ; shift ;; 153 "-j") 154 job=$2 ; shift ; shift ;; 155 "-full") 156 full="-full" ; shift ;; 149 157 150 158 "-arch") … … 248 256 fi 249 257 250 if [[ "$veget" == "orchidee2.0" ]] 251 then 252 # orchidee2.0 : 253 # Compile with ORCHIDEE 2.0 (or more recent) 258 if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" ] 259 then 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}" 254 264 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 280 elif [[ "$veget" != "false" ]] ; then 274 281 echo "Option -v $veget does not exist" 275 282 echo "Use ./makelmdz_fcm -h for more information" … … 468 475 469 476 rm -f $LIBOGCM/${arch}${SUFF_NAME}/.config/fcm.bld.lock 470 ./build_gcm ${fcm_path} 477 ./build_gcm ${fcm_path} -j $job $full 471 478 472 479 rm -rf tmp_src
Note: See TracChangeset
for help on using the changeset viewer.