Changeset 3965
- Timestamp:
- Nov 8, 2016, 4:31:57 PM (8 years ago)
- Location:
- dynamico_lmdz/aquaplanet/LMDZ5
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
dynamico_lmdz/aquaplanet/LMDZ5/arch/arch-X64_ADA.fcm
r3897 r3965 5 5 %FPP_FLAGS -P -traditional -I/smplocal/pub/FFTW/3.3.3_dyn/include/ 6 6 %FPP_DEF NC_DOUBLE FFT_FFTW 7 %BASE_FFLAGS -auto - mcmodel=large -integer-size 32 -real-size 64 -align all7 %BASE_FFLAGS -auto -integer-size 32 -real-size 64 -align all 8 8 %PROD_FFLAGS -O2 -ip -fp-model strict -axAVX,SSE4.2 9 9 %DEV_FFLAGS -p -g -O1 -fpe0 -traceback 10 %DEBUG_FFLAGS -p -g -O0 -fpe-all=0 -traceback-ftrapuv -fp-stack-check10 %DEBUG_FFLAGS -p -g -O0 -fpe-all=0 -ftrapuv -fp-stack-check 11 11 %MPI_FFLAGS 12 12 %OMP_FFLAGS -openmp -openmp-threadprivate=compat 13 %BASE_LD -L/smplocal/pub/FFTW/3.3.3_dyn/lib -lfftw3 - shared-intel -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -Wl,-rpath=/smplocal/pub/NetCDF/4.1.3/mpi/lib:/smplocal/pub/HDF5/1.8.9/par/lib:/smplocal/pub/FFTW/3.3.3_dyn/lib13 %BASE_LD -L/smplocal/pub/FFTW/3.3.3_dyn/lib -lfftw3 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -Wl,-rpath=/smplocal/pub/FFTW/3.3.3_dyn/lib 14 14 %MPI_LD 15 15 %OMP_LD -openmp -openmp-threadprivate=compat -
dynamico_lmdz/aquaplanet/LMDZ5/makelmdz_fcm
r3832 r3965 35 35 full='' 36 36 nodyn=false 37 38 arch_defined="FALSE" 39 arch_path="arch" 40 arch_default_path="arch" 37 41 38 42 LMDGCM=`/bin/pwd` … … 180 184 181 185 "-arch") 182 arch=$2 ; shift ; shift ;; 183 186 arch=$2 ; arch_defined="TRUE"; shift ; shift ;; 187 188 "-arch_path") 189 arch_path=$2 ; arch_path_defined="TRUE"; shift ; shift ;; 184 190 *) 185 191 code="$1" ; shift ;; … … 210 216 rm -rf .void_dir 211 217 mkdir .void_dir 212 rm -f arch.path 213 ln -s arch/arch-${arch}.path ./arch.path 214 source arch.path 218 219 if [[ "$arch_defined" == "TRUE" ]] 220 then 221 rm -f arch.path 222 rm -f arch.fcm 223 rm -f arch.env 224 225 if test -f $arch_path/arch-${arch}.path 226 then 227 ln -s $arch_path/arch-${arch}.path arch.path 228 elif test -f $arch_default_path/arch-${arch}.path 229 then 230 ln -s $arch_default_path/arch-${arch}.path arch.path 231 fi 232 233 if test -f $arch_path/arch-${arch}.fcm 234 then 235 ln -s $arch_path/arch-${arch}.fcm arch.fcm 236 elif test -f $arch_default_path/arch-${arch}.fcm 237 then 238 ln -s $arch_default_path/arch-${arch}.fcm arch.fcm 239 fi 240 241 if test -f $arch_path/arch-${arch}.env 242 then 243 ln -s $arch_path/arch-${arch}.env arch.env 244 elif test -f $arch_default_path/arch-${arch}.env 245 then 246 ln -s $arch_default_path/arch-${arch}.env arch.env 247 else 248 ln -s .void_file arch.env 249 fi 250 source arch.env 251 source arch.path 252 else 253 echo "Veuillez definir une architecture cible" 254 exit 1 255 fi 215 256 216 257 ######################################################################## … … 261 302 then 262 303 CPP_KEY="$CPP_KEY INCA" 263 INCLUDE="$INCLUDE -I${INCA_INCDIR}"264 LIB="$LIB -L${INCA_LIBDIR} -lchimie"304 INCLUDE="$INCLUDE ${INCA_INCDIR}" 305 LIB="$LIB ${INCA_LIBDIR} ${INCA_LIB}" 265 306 fi 266 307 … … 272 313 export OASIS_INCDIR=$LMDGCM/../../prism/X64/build/lib/psmile.MPI1 273 314 export OASIS_LIBDIR=$LMDGCM/../../prism/X64/lib 274 INCLUDE="$INCLUDE -I${OASIS_INCDIR}"275 LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.MPI1 -lmpp_io"315 INCLUDE="$INCLUDE ${OASIS_INCDIR}" 316 LIB="$LIB ${OASIS_LIBDIR} ${OASIS_LIB}" 276 317 else 277 318 CPP_KEY="$CPP_KEY CPP_COUPLE CPP_OMCT" 278 INCLUDE="$INCLUDE -I${OASIS_INCDIR}"279 LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.MPI1 -lscrip -lmct -lmpeu"319 INCLUDE="$INCLUDE ${OASIS_INCDIR}" 320 LIB="$LIB ${OASIS_LIBDIR} ${OASIS_LIB}" 280 321 fi 281 322 fi … … 310 351 # For this case, cpp flag ORCHIDEE_NOOPENMP must be added to the makelmdz_fcm arguments 311 352 # 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 312 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"353 INCLUDE="${INCLUDE} ${ORCHIDEE_INCDIR}" 313 354 CPP_KEY="$CPP_KEY CPP_VEGET" 314 355 # temporary, for Orchidee versions 1.9.* (before openmp activation) … … 321 362 orch_libs="sechiba parameters stomate parallel orglob" 322 363 fi 323 LIB="${LIB} -L${ORCH_LIBDIR}" 324 for lib in ${orch_libs} ; do 325 if [ -f ${ORCH_LIBDIR}/lib${LIBPREFIX}$lib.a ] ; then 326 LIB="${LIB} -l${LIBPREFIX}$lib " 327 fi 328 done 364 LIB="${LIB} ${ORCHIDEE_LIBDIR} ${ORCHIDEE_LIB}" 329 365 elif [[ "$veget" != "false" ]] ; then 330 366 echo "Option -v $veget does not exist" … … 348 384 then 349 385 CPP_KEY="$CPP_KEY CPP_IOIPSL" 350 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR}"351 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl"386 INCLUDE="$INCLUDE ${IOIPSL_INCDIR}" 387 LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB}" 352 388 elif [[ $io == mix ]] 353 389 then 354 390 # For now, xios implies also using ioipsl 355 391 CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS" 356 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"357 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios"392 INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}" 393 LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}" 358 394 elif [[ $io == xios ]] 359 395 then 360 396 # For now, xios implies also using ioipsl 361 397 CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS CPP_IOIPSL_NO_OUTPUT" 362 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"363 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios"398 INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}" 399 LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}" 364 400 fi 365 401
Note: See TracChangeset
for help on using the changeset viewer.