Changeset 148 for trunk/LMDZ.MARS/makegcm_ifort
- Timestamp:
- Jun 8, 2011, 3:26:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/makegcm_ifort
r141 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 … … 279 280 $LMDGCM/libf/grid/dimension/makdim 280 281 282 -s nscat Number of radiatively active scatterers 283 281 284 -p PHYS Selects the set of physical parameterizations 282 285 you want to compile the model with. … … 335 338 case -p 336 339 set physique="$2" ; set phys="PHYS=$physique" ; shift ; shift ; goto top 340 341 case -s 342 set scatterers="$2" ; shift ; goto top 337 343 338 344 case -g … … 449 455 # build final name of libraries directory: 450 456 if ( "$dyntype" == "olddyn" ) then 451 set nomlib=${nomlib}_${dim_}_t${ntrac}_ ${grille}_olddyn457 set nomlib=${nomlib}_${dim_}_t${ntrac}_s${scatterers}_${grille}_olddyn 452 458 else 453 set nomlib=${nomlib}_${dim_}_t${ntrac}_ ${grille}459 set nomlib=${nomlib}_${dim_}_t${ntrac}_s${scatterers}_${grille} 454 460 endif 455 461 … … 497 503 cd $libf/grid 498 504 if ( -f dimensions.h ) then 499 echo "ATTENTION: vous etes sans doute en train de compiler le modele par ailleurs" 500 echo "Attendez que la premiere compilation soit terminee pour relancer la suivante." 501 echo "Si vous etes sur que vous ne compilez pas le modele par ailleurs," 502 echo "vous pouvez continuer en repondant oui." 503 echo "Voulez-vous vraiment continuer?" 504 if ( $< == "oui" ) then 505 echo "WARNING: you are probably already compiling the model (perhaps" 506 echo " elsewhere). Wait until the first compilation ends before " 507 echo " compiling a different configuration." 508 echo "If you are sure that you are not already compiling, then you" 509 echo " may continue this compilation by answering yes." 510 echo "Do you want to continue?" 511 if ( $< == "yes" ) then 505 512 #remove old dimensions.h file 506 513 \rm -f $libf/grid/dimensions.h 514 #remove old scatterers.h file 515 \rm -f $libf/phymars/scatterers.h 507 516 else 508 517 exit … … 515 524 # echo contents of dimensions.h to standard output 516 525 cat $libf/grid/dimensions.h 526 527 cd $libf/phymars/scatterers 528 # Build the appropriate 'scatterers.h' file 529 ./make_scatterers $scatterers 530 # echo contents of scatterers.h to standard output 531 cat $libf/phymars/scatterers.h 517 532 518 533 cd $LMDGCM … … 672 687 endif 673 688 674 675 676 #677 # les deux test suivants sont "temporaires" pour pallier des "faiblesses" du678 # compilateur fortran Sun: f90: SC4.0 11 Sep 1995 FORTRAN 90 1.1679 #680 #if ($code == 'create_limit' && $SUN) then681 # set link=f77682 # set opt_link="-L$NCDFLIB -lnetcdf"683 #endif684 685 #if ($code == 'create_etat0' && $SUN) then686 # if ( ! -f $libo/libdyn3d.a ) then687 # echo "Priere de compiler gcm en premier pour des raisons d'optimisation"688 # \rm $libf/grid/dimensions.h689 # exit690 # endif691 # set optim90=" -dalign -fixed "692 # set opt_link="-L$IOIPSLDIR -lioipsl -L$NCDFLIB -lnetcdf"693 # set link="$f90 $optim90"694 # touch $LMDGCM/libf/dyn3d/startvar.F695 # touch $LMDGCM/libf/dyn3d/etat0_netcdf.F696 #endif697 698 #699 # Encore un test temporaire: probleme de compilation sur VPP700 # l'optimisation de startvar se passe mal701 #702 #if ($code == 'create_etat0' && $VPP) then703 # if ( ! -f $libo/libdyn3d.a ) then704 # echo "Priere de compiler gcm en premier pour des raisons d'optimisation"705 # \rm $libf/grid/dimensions.h706 # exit707 # endif708 # set optim90="$optim90"" -X9 -w"709 # set opt_link="-L$NCDFLIB -lnetcdf"710 # touch $LMDGCM/libf/dyn3d/startvar.F711 # touch $LMDGCM/libf/dyn3d/etat0_netcdf.F712 #endif713 714 #715 # etat0_netcdf a besoin d'info de la physique716 # A revoir717 689 set include="$include"" -I$libf/phy$physique" 718 690 … … 804 776 PROG=$code 805 777 806 \rm $libf/grid/dimensions.h 778 # cleanup, remove dimensions.h and scatterers.h 779 \rm -f $libf/grid/dimensions.h 780 \rm -f $libf/phymars/scatterers.h
Note: See TracChangeset
for help on using the changeset viewer.