Changeset 2430
- Timestamp:
- Jan 27, 2016, 3:17:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install/install.sh
r2409 r2430 74 74 ## compile_with_fcm=1 : use makelmdz_fcm, possible a of version 20111103.trunk (LMDZ5/trunk rev 1578) 75 75 ## compile_with_fcm=0 : use makelmdz 76 compile_with_fcm= 176 compile_with_fcm=0 77 77 78 78 … … 439 439 cd $MODEL/modipsl/modeles/ORCHIDEE 440 440 echo OKpwd ; pwd 441 if [ -d src_parallel ] ; then 442 liste_src="parallel parameters global stomate sechiba driver" 441 442 export ORCHPATH=`pwd` 443 if [ -d tools ] ; then 444 # orchidee_rev=2247 443 445 veget_version=orchidee2.0 446 cd arch 447 fpp_flags='-P -traditional' 448 sed -e s:"%COMPILER .*.$":"%COMPILER $compilo":1 \ 449 -e s:"%LINK .*.$":"%LINK $compilo":1 \ 450 -e s:"%FPP_FLAGS .*.$":"%FPP_FLAGS $fpp_flags":1 \ 451 -e s:"%PROD_FFLAGS .*.$":"%PROD_FFLAGS $OPTIM":1 \ 452 -e s:"%DEV_FFLAGS .*.$":"%DEV_FFLAGS $OPTDEV":1 \ 453 -e s:"%DEBUG_FFLAGS .*.$":"%DEBUG_FFLAGS $OPTDEB":1 \ 454 -e s:"%BASE_FFLAGS .*.$":"%BASE_FFLAGS $OPTPREC -cpp":1 \ 455 arch-gfortran.fcm > arch-local.fcm 456 echo "NETCDF_LIBDIR=\"-L${ncdfdir}/lib -lnetcdf\"" > arch-local.path 457 echo "NETCDF_INCDIR=${ncdfdir}/include" >> arch-local.path 458 echo "IOIPSL_INCDIR=$ORCHPATH/../../lib" >> arch-local.path 459 echo "IOIPSL_LIBDIR=$ORCHPATH/../../lib" >> arch-local.path 460 cd ../ 461 # compiling ORCHIDEE sequential mode 462 ./makeorchidee_fcm -noxios -prod -parallel none -arch local 444 463 else 445 # Obsolete, for ORCHIDEE_beton only 446 liste_src="parameters stomate sechiba " 447 # A trick to compile ORCHIDEE depending on if we are using real*4 or real*8 448 cd src_parameters ; \cp reqdprec.$real reqdprec.f90 ; cd .. 449 veget_version=orchidee1.9 464 if [ -d src_parallel ] ; then 465 liste_src="parallel parameters global stomate sechiba driver" 466 veget_version=orchidee2.0 467 else 468 # Obsolete, for ORCHIDEE_beton only 469 liste_src="parameters stomate sechiba " 470 # A trick to compile ORCHIDEE depending on if we are using real*4 or real*8 471 cd src_parameters ; \cp reqdprec.$real reqdprec.f90 ; cd .. 472 veget_version=orchidee1.9 473 fi 474 for d in $liste_src ; do src_d=src_$d 475 echo src_d $src_d 476 echo ls ; ls 477 if [ ! -d $src_d ] ; then echo Problem orchidee : no $src_d ; exit ; fi 478 cd $src_d ; \rm -f *.mod make ; make clean 479 make ; if [ "$compilo" = "$gfortran" -o "$compilo" = "mpif90" ] ; then cp -f *.mod ../../../lib ; fi 480 cd .. 481 done 450 482 fi 451 483 echo liste_strc $liste_src
Note: See TracChangeset
for help on using the changeset viewer.