Changeset 148 for trunk/LMDZ.MARS/makegcm_gfortran
- Timestamp:
- Jun 8, 2011, 3:26:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/makegcm_gfortran
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 … … 285 286 $LMDGCM/libf/grid/dimension/makdim 286 287 288 -s nscat Number of radiatively active scatterers 289 287 290 -p PHYS Selects the set of physical parameterizations 288 291 you want to compile the model with. … … 341 344 case -p 342 345 set physique="$2" ; set phys="PHYS=$physique" ; shift ; shift ; goto top 346 347 case -s 348 set scatterers="$2" ; shift ; goto top 343 349 344 350 case -g … … 455 461 # build final name of libraries directory: 456 462 if ( "$dyntype" == "olddyn" ) then 457 set nomlib=${nomlib}_${dim_}_t${ntrac}_ ${grille}_olddyn463 set nomlib=${nomlib}_${dim_}_t${ntrac}_s${scatterers}_${grille}_olddyn 458 464 else 459 set nomlib=${nomlib}_${dim_}_t${ntrac}_ ${grille}465 set nomlib=${nomlib}_${dim_}_t${ntrac}_s${scatterers}_${grille} 460 466 endif 461 467 … … 503 509 cd $libf/grid 504 510 if ( -f dimensions.h ) then 505 echo "ATTENTION: vous etes sans doute en train de compiler le modele par ailleurs" 506 echo "Attendez que la premiere compilation soit terminee pour relancer la suivante." 507 echo "Si vous etes sur que vous ne compilez pas le modele par ailleurs," 508 echo "vous pouvez continuer en repondant oui." 509 echo "Voulez-vous vraiment continuer?" 510 if ( $< == "oui" ) then 511 echo "WARNING: you are probably already compiling the model (perhaps" 512 echo " elsewhere). Wait until the first compilation ends before " 513 echo " compiling a different configuration." 514 echo "If you are sure that you are not already compiling, then you" 515 echo " may continue this compilation by answering yes." 516 echo "Do you want to continue?" 517 if ( $< == "yes" ) then 511 518 #remove old dimensions.h file 512 519 \rm -f $libf/grid/dimensions.h 520 #remove old scatterers.h file 521 \rm -f $libf/phymars/scatterers.h 513 522 else 514 523 exit … … 521 530 # echo contents of dimensions.h to standard output 522 531 cat $libf/grid/dimensions.h 532 533 cd $libf/phymars/scatterers 534 # Build the appropriate 'scatterers.h' file 535 ./make_scatterers $scatterers 536 # echo contents of scatterers.h to standard output 537 cat $libf/phymars/scatterers.h 523 538 524 539 cd $LMDGCM … … 679 694 endif 680 695 681 682 683 #684 # les deux test suivants sont "temporaires" pour pallier des "faiblesses" du685 # compilateur fortran Sun: f90: SC4.0 11 Sep 1995 FORTRAN 90 1.1686 #687 #if ($code == 'create_limit' && $SUN) then688 # set link=f77689 # set opt_link="-L$NCDFLIB -lnetcdf"690 #endif691 692 #if ($code == 'create_etat0' && $SUN) then693 # if ( ! -f $libo/libdyn3d.a ) then694 # echo "Priere de compiler gcm en premier pour des raisons d'optimisation"695 # \rm $libf/grid/dimensions.h696 # exit697 # endif698 # set optim90=" -dalign -fixed "699 # set opt_link="-L$IOIPSLDIR -lioipsl -L$NCDFLIB -lnetcdf"700 # set link="$f90 $optim90"701 # touch $LMDGCM/libf/dyn3d/startvar.F702 # touch $LMDGCM/libf/dyn3d/etat0_netcdf.F703 #endif704 705 #706 # Encore un test temporaire: probleme de compilation sur VPP707 # l'optimisation de startvar se passe mal708 #709 #if ($code == 'create_etat0' && $VPP) then710 # if ( ! -f $libo/libdyn3d.a ) then711 # echo "Priere de compiler gcm en premier pour des raisons d'optimisation"712 # \rm $libf/grid/dimensions.h713 # exit714 # endif715 # set optim90="$optim90"" -X9 -w"716 # set opt_link="-L$NCDFLIB -lnetcdf"717 # touch $LMDGCM/libf/dyn3d/startvar.F718 # touch $LMDGCM/libf/dyn3d/etat0_netcdf.F719 #endif720 721 #722 # etat0_netcdf a besoin d'info de la physique723 # A revoir724 696 set include="$include"" -I$libf/phy$physique" 725 697 … … 811 783 PROG=$code 812 784 813 \rm $libf/grid/dimensions.h 785 # cleanup, remove dimensions.h and scatterers.h 786 \rm -f $libf/grid/dimensions.h 787 \rm -f $libf/phymars/scatterers.h
Note: See TracChangeset
for help on using the changeset viewer.