Changeset 148 for trunk/LMDZ.MARS/makegcm_g95
- Timestamp:
- Jun 8, 2011, 3:26:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/makegcm_g95
r38 r148 13 13 set grille=reg 14 14 set dyntype="dyn" 15 set scatterers="1" 15 16 ######################################################################## 16 17 # path a changer contenant les sources et les objets du modele … … 287 288 $LMDGCM/libf/grid/dimension/makdim 288 289 290 -s nscat Number of radiatively active scatterers 291 289 292 -p PHYS Selects the set of physical parameterizations 290 293 you want to compile the model with. … … 343 346 case -p 344 347 set physique="$2" ; set phys="PHYS=$physique" ; shift ; shift ; goto top 348 349 case -s 350 set scatterers="$2" ; shift ; goto top 345 351 346 352 case -g … … 457 463 # build final name of libraries directory: 458 464 if ( "$dyntype" == "olddyn" ) then 459 set nomlib=${nomlib}_${dim_}_t${ntrac}_ ${grille}_olddyn465 set nomlib=${nomlib}_${dim_}_t${ntrac}_s${scatterers}_${grille}_olddyn 460 466 else 461 set nomlib=${nomlib}_${dim_}_t${ntrac}_ ${grille}467 set nomlib=${nomlib}_${dim_}_t${ntrac}_s${scatterers}_${grille} 462 468 endif 463 469 … … 505 511 cd $libf/grid 506 512 if ( -f dimensions.h ) then 507 echo "ATTENTION: vous etes sans doute en train de compiler le modele par ailleurs" 508 echo "Attendez que la premiere compilation soit terminee pour relancer la suivante." 509 echo "Si vous etes sur que vous ne compilez pas le modele par ailleurs," 510 echo "vous pouvez continuer en repondant oui." 511 echo "Voulez-vous vraiment continuer?" 512 if ( $< == "oui" ) then 513 echo "WARNING: you are probably already compiling the model (perhaps" 514 echo " elsewhere). Wait until the first compilation ends before " 515 echo " compiling a different configuration." 516 echo "If you are sure that you are not already compiling, then you" 517 echo " may continue this compilation by answering yes." 518 echo "Do you want to continue?" 519 if ( $< == "yes" ) then 513 520 #remove old dimensions.h file 514 521 \rm -f $libf/grid/dimensions.h 522 #remove old scatterers.h file 523 \rm -f $libf/phymars/scatterers.h 515 524 else 516 525 exit … … 523 532 # echo contents of dimensions.h to standard output 524 533 cat $libf/grid/dimensions.h 534 535 cd $libf/phymars/scatterers 536 # Build the appropriate 'scatterers.h' file 537 ./make_scatterers $scatterers 538 # echo contents of scatterers.h to standard output 539 cat $libf/phymars/scatterers.h 525 540 526 541 cd $LMDGCM … … 681 696 endif 682 697 683 684 685 #686 # les deux test suivants sont "temporaires" pour pallier des "faiblesses" du687 # compilateur fortran Sun: f90: SC4.0 11 Sep 1995 FORTRAN 90 1.1688 #689 #if ($code == 'create_limit' && $SUN) then690 # set link=f77691 # set opt_link="-L$NCDFLIB -lnetcdf"692 #endif693 694 #if ($code == 'create_etat0' && $SUN) then695 # if ( ! -f $libo/libdyn3d.a ) then696 # echo "Priere de compiler gcm en premier pour des raisons d'optimisation"697 # \rm $libf/grid/dimensions.h698 # exit699 # endif700 # set optim90=" -dalign -fixed "701 # set opt_link="-L$IOIPSLDIR -lioipsl -L$NCDFLIB -lnetcdf"702 # set link="$f90 $optim90"703 # touch $LMDGCM/libf/dyn3d/startvar.F704 # touch $LMDGCM/libf/dyn3d/etat0_netcdf.F705 #endif706 707 #708 # Encore un test temporaire: probleme de compilation sur VPP709 # l'optimisation de startvar se passe mal710 #711 #if ($code == 'create_etat0' && $VPP) then712 # if ( ! -f $libo/libdyn3d.a ) then713 # echo "Priere de compiler gcm en premier pour des raisons d'optimisation"714 # \rm $libf/grid/dimensions.h715 # exit716 # endif717 # set optim90="$optim90"" -X9 -w"718 # set opt_link="-L$NCDFLIB -lnetcdf"719 # touch $LMDGCM/libf/dyn3d/startvar.F720 # touch $LMDGCM/libf/dyn3d/etat0_netcdf.F721 #endif722 723 #724 # etat0_netcdf a besoin d'info de la physique725 # A revoir726 698 set include="$include"" -I$libf/phy$physique" 727 699 … … 813 785 PROG=$code 814 786 815 \rm $libf/grid/dimensions.h 787 # cleanup, remove dimensions.h and scatterers.h 788 \rm -f $libf/grid/dimensions.h 789 \rm -f $libf/phymars/scatterers.h
Note: See TracChangeset
for help on using the changeset viewer.