Changeset 104 for trunk/makelmdz
- Timestamp:
- Mar 25, 2011, 4:58:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/makelmdz
r101 r104 88 88 PARA_LD="" 89 89 EXT_SRC="" 90 ccompiler="" 91 OPTIMC="" 92 INCLUDEC="" 90 93 91 94 ######################################################################## … … 106 109 [-c false/MPI1/MPI2] : couple ocean : MPI1/MPI2/false (def: false) 107 110 [-v false/true] : avec ou sans vegetation (def: false) 108 [-chimie INCA/false] : avec ou sans model de chimie INCA (def: false)111 [-chimie INCA/false] : avec ou sans modele de chimie INCA (def: false) 109 112 [-parallel none/mpi/omp/mpi_omp] : parallelisation (default: none) : mpi, openmp ou mixte mpi_openmp 110 113 [-g GRI] : conf. grille dans dyn3d/GRI_xy.h (def: reg inclue un zoom) … … 282 285 fi 283 286 287 ######### CAS PARTICULIER CHIMIE TITAN 288 if [[ "$physique" == "titan" ]] 289 then 290 INCLUDE="$INCLUDE"' -I$(LIBF)/chim'"$physique" 291 LIB="$LIB -l${LIBPREFIX}chim$physique" 292 opt_dep="$opt_dep chim$physique" 293 # get C compiler name and optim from arch.fcm file 294 archfileline=$( grep -i '^%C_COMPILER' arch.fcm ) 295 ccompiler=$( echo ${archfileline##%C_COMPILER} ) 296 archfileline=$( grep -i '^%C_OPTIM' arch.fcm ) 297 coptim=$( echo ${archfileline##%C_OPTIM} ) 298 OPTIMC="$OPTIMC ${coptim}" 299 INCLUDEC='-I$(LIBF)/grid -I.' 300 fi 301 ######### 302 284 303 if [[ "$chimie" == "INCA" ]] 285 304 then … … 479 498 find libf -name '*.[Fh]' -exec egrep -i " *use *ioipsl" {} \; -print > tmp90 480 499 find libf -name '*.[Fh90]' -print >> tmp90 500 ######### CAS PARTICULIER CHIMIE TITAN 501 if [[ "$physique" == "titan" ]] 502 then 503 find libf -name '*.[ch]' -print > tmpC 504 fi 505 ######### 481 506 482 507 if [[ ! ( -r makefile ) || ! ( -r liste_des_sources_f90 ) || ! ( -r liste_des_sources_f77 ) || ` diff tmp77 liste_des_sources_f77 | wc -w ` -ne 0 || ` diff tmp90 liste_des_sources_f90 | wc -w ` -ne 0 ]] … … 488 513 \cp -f tmp77 liste_des_sources_f77 489 514 \cp -f tmp90 liste_des_sources_f90 515 ######### CAS PARTICULIER CHIMIE TITAN 516 if [[ "$physique" == "titan" ]] 517 then 518 diff liste_des_sources_C tmpC 519 \cp -f tmpC liste_des_sources_C 520 fi 521 ######### 490 522 echo "on recree le makefile" 491 523 ./create_make_gcm > tmp 492 524 \mv -f tmp makefile 493 525 echo "Nouveau makefile cree" 526 ######### CAS PARTICULIER CHIMIE TITAN 527 else if [[ "$physique" == "titan" ]] 528 then 529 if [[ ! ( -r liste_des_sources_C ) || ` diff tmpC liste_des_sources_C | wc -w ` -ne 0 ]] 530 then 531 diff liste_des_sources_C tmpC 532 \cp -f tmpC liste_des_sources_C 533 echo "on recree le makefile" 534 ./create_make_gcm > tmp 535 \mv -f tmp makefile 536 echo "Nouveau makefile cree" 537 fi 538 fi 539 ######### 494 540 fi 495 541 496 542 ################################################################# 497 # Preparation de l'execution de la com ande make543 # Preparation de l'execution de la commande make 498 544 ################################################################# 499 545 … … 558 604 OPTIMTRU90="${COMPIL_FFLAGS} ${PARA_FFLAGS}" \ 559 605 OPTIM="${COMPIL_FFLAGS} ${PARA_FFLAGS}" \ 606 OPTIMC="$optimc" \ 560 607 INCLUDE="$INCLUDE" \ 608 INCLUDEC="$includec" \ 561 609 $filtre \ 562 610 LIBO=${LIBOGCM}/${nomlib} \ … … 570 618 F77="$fcompiler" \ 571 619 F90="$fcompiler" \ 620 CCC="$ccompiler" \ 572 621 OPLINK="$LIB" \ 573 622 LINK="$linker" \ … … 584 633 OPTIMTRU90="${COMPIL_FFLAGS} ${PARA_FFLAGS}" \ 585 634 OPTIM="${COMPIL_FFLAGS} ${PARA_FFLAGS}" \ 635 OPTIMC="$optimc" \ 586 636 INCLUDE="$INCLUDE" \ 637 INCLUDEC="$includec" \ 587 638 $filtre \ 588 639 LIBO=${LIBOGCM}/${nomlib} \ … … 596 647 F77="$fcompiler" \ 597 648 F90="$fcompiler" \ 649 CCC="$ccompiler" \ 598 650 OPLINK="$LIB" \ 599 651 LINK="$linker" \
Note: See TracChangeset
for help on using the changeset viewer.