Changeset 78
- Timestamp:
- Feb 25, 2011, 12:54:14 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mars/libf/phymars/datafile.h
r38 r78 5 5 6 6 character (len=100) :: datafile 7 data datafile /'/u/forget/WWW/datagcm/datafile'/7 ! data datafile /'/u/forget/WWW/datagcm/datafile'/ 8 8 ! data datafile /'/home/forget/datafile'/ 9 data datafile /'datafile'/ 9 10 !----------------------------------------------------------------------- -
trunk/mesoscale/LMD_MM_MARS/SIMU/gnome_launch.meso
r67 r78 4 4 # @ job_type = MPICH 5 5 ## @ total_tasks =16 6 # @ total_tasks =87 # #@ total_tasks =46 ## @ total_tasks =8 7 # @ total_tasks =4 8 8 # @ blocking = unlimited 9 9 ## @ class =AP -
trunk/mesoscale/LMD_MM_MARS/SIMU/runmeso
r76 r78 22 22 ########################################### 23 23 24 datafile = '/u/forget/WWW/datagcm/datafile' 24 25 25 26 changeregis=0 ## 1 if changed registry … … 516 517 cd ${simu_folder} 517 518 rm -rf ${simu_folder}/wrfout* 519 ln -sf ${datafile} datafile 518 520 if [[ ${compilo} -eq 3 ]] 519 521 then -
trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/mars_lmd_new/makegcm_ifort
r69 r78 179 179 else if $DEC then 180 180 else if $LINUX then 181 ## Ehouarn & Aymeric: ifort options 182 set optim90=" -O2 -static -zero -align commons" #-ffree-line-length-huge" 183 set optimtru90=" -O2 -static -zero -align commons" #-ffree-line-length-huge" 184 set opt_link=" -L$NCDFLIB -lnetcdf" 181 # Ehouarn 'ifort' compiler 182 #NB: on gnome -O3 ==> NaNs ... 183 set optim=" -O2 -ip -mkl=sequential -align common " 184 set optim90=" -O2 -ip -mkl=sequential -align common " 185 set optimtru90=" -O2 -ip -mkl=sequential -align common " 186 # set opt_link=" -Mfree -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$NCDFLIB -lnetcdf -Bstatic " 187 set mod_loc_dir=$LIBOGCM 188 set mod_suffix=mod 185 189 else if $NEC then 186 190 set optim90=' -clear -C hopt -float0 -ew -P static -Wf,"-pvctl fullmsg noassume "' … … 209 213 endif 210 214 211 set nomlib=$machine 215 # Ehouarn: add 'g9fortran' string to pathname 216 set nomlib=${machine} 212 217 213 218 # Impose distinct name for 64 bit Linux machines (to avoid mixing 32 and 64) … … 332 337 333 338 case -O: 334 set optim 90="$2" ; shift ; shift ; goto top339 set optim="$2" ; set optim90="$2" ; set optimtru90="$2" ; shift ; shift ; goto top 335 340 336 341 case -p … … 368 373 set optim90="$optim90"" -G1 " 369 374 else if $LINUX then 370 set optim90="-g -Mbounds " 375 ## for ifort 376 set optim=" -g -no-ftz -traceback -ftrapuv -fp-stack-check " 377 set optim90=" -g -no-ftz -traceback -ftrapuv -fp-stack-check " 378 set optimtru90=" -g -no-ftz -traceback -ftrapuv -fp-stack-check " 371 379 else 372 380 echo "pas d option debug predefinie pour cette machine" … … 502 510 # if ( $< == "oui" ) then 503 511 # #remove old dimensions.h file 504 # \rm $libf/grid/dimensions.h512 # \rm -f $libf/grid/dimensions.h 505 513 # else 506 514 # exit … … 511 519 # Build the appropriate 'dimensions.h' file 512 520 cd dimension 513 makdim $ntrac $dim521 ./makdim $ntrac $dim 514 522 # echo contents of dimensions.h to standard output 515 523 cat $libf/grid/dimensions.h … … 641 649 set f90=f90 642 650 else if $LINUX then 643 set f77=pgf90 644 set f90=pgf90 651 set f77=ifort 652 set f90=ifort 653 set opt_link=" -L$LIBOGCM -L$NCDFLIB -lnetcdf " 645 654 else if $SUN then 646 655 set f77=f90 … … 702 711 # l'optimisation de startvar se passe mal 703 712 # 704 if ($code == 'create_etat0' && $VPP) then705 if ( ! -f $libo/libdyn3d.a ) then706 echo "Priere de compiler gcm en premier pour des raisons d'optimisation"707 \rm $libf/grid/dimensions.h708 exit709 endif710 set optim90="$optim90"" -X9 -w"711 set opt_link="-L$NCDFLIB -lnetcdf"712 touch $LMDGCM/libf/dyn3d/startvar.F713 touch $LMDGCM/libf/dyn3d/etat0_netcdf.F714 endif713 #if ($code == 'create_etat0' && $VPP) then 714 # if ( ! -f $libo/libdyn3d.a ) then 715 # echo "Priere de compiler gcm en premier pour des raisons d'optimisation" 716 # \rm $libf/grid/dimensions.h 717 # exit 718 # endif 719 # set optim90="$optim90"" -X9 -w" 720 # set opt_link="-L$NCDFLIB -lnetcdf" 721 # touch $LMDGCM/libf/dyn3d/startvar.F 722 # touch $LMDGCM/libf/dyn3d/etat0_netcdf.F 723 #endif 715 724 716 725 # … … 736 745 set optimtru90=" $optimtru90 -I$libo " 737 746 else if $LINUX then 738 set optim90="$optim90 -module $libo" 739 set optimtru90="$optimtru90 -module $libo" 747 # Ehouarn : adapt to gfortran 748 set optim="$optim -I${libo}" 749 set optim90="$optim90 -I${libo}" 750 set optimtru90="$optimtru90 -ffree-form -I${libo}" 740 751 # Ehouarn: remove set mod_loc_dir def below; mod_loc_dir=$localdir (set above) 741 752 # set mod_loc_dir=$libo … … 757 768 echo $make -f $LMDGCM/makefile \ 758 769 OPTION_DEP="$opt_dep" OPTION_LINK="$opt_link" \ 770 OPTIM="$optim" \ 759 771 OPTIM90="$optim90" \ 760 772 OPTIMTRU90="$optimtru90" \ … … 781 793 $make -f $LMDGCM/makefile \ 782 794 OPTION_DEP="$opt_dep" OPTION_LINK="$opt_link" \ 795 OPTIM="$optim" \ 783 796 OPTIM90="$optim90" \ 784 797 OPTIMTRU90="$optimtru90" \ -
trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/mars_lmd_new/makegcm_mpifort
r69 r78 73 73 exit 74 74 endif 75 ### Aymeric: that could be useless, but user might76 ### want to test various mpi at various locations on the disk77 if ( ! $?WHERE_MPI ) then78 echo You must initialize the variable WHERE_MPI in your environnement79 echo for instance: "setenv WHERE_MPI /home/install_mpi/bin" in .cshrc80 exit81 endif82 75 endif 83 76 set model=$LMDGCM … … 186 179 else if $DEC then 187 180 else if $LINUX then 188 ## Ehouarn & Aymeric: ifort options 189 set optim90=" -O2 -static -zero -align commons" #-ffree-line-length-huge" 190 set optimtru90=" -O2 -static -zero -align commons" #-ffree-line-length-huge" 191 set opt_link=" -L$NCDFLIB -lnetcdf" 181 # Ehouarn 'ifort' compiler 182 #NB: on gnome -O3 ==> NaNs ... 183 set optim=" -O2 -ip -mkl=sequential -align common " 184 set optim90=" -O2 -ip -mkl=sequential -align common " 185 set optimtru90=" -O2 -ip -mkl=sequential -align common " 186 # set opt_link=" -Mfree -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$NCDFLIB -lnetcdf -Bstatic " 187 set mod_loc_dir=$LIBOGCM 188 set mod_suffix=mod 192 189 else if $NEC then 193 190 set optim90=' -clear -C hopt -float0 -ew -P static -Wf,"-pvctl fullmsg noassume "' … … 216 213 endif 217 214 218 set nomlib=$machine 215 # Ehouarn: add 'g9fortran' string to pathname 216 set nomlib=${machine} 219 217 220 218 # Impose distinct name for 64 bit Linux machines (to avoid mixing 32 and 64) … … 339 337 340 338 case -O: 341 set optim 90="$2" ; shift ; shift ; goto top339 set optim="$2" ; set optim90="$2" ; set optimtru90="$2" ; shift ; shift ; goto top 342 340 343 341 case -p … … 375 373 set optim90="$optim90"" -G1 " 376 374 else if $LINUX then 377 set optim90="-g -Mbounds " 375 ## for ifort 376 set optim=" -g -no-ftz -traceback -ftrapuv -fp-stack-check " 377 set optim90=" -g -no-ftz -traceback -ftrapuv -fp-stack-check " 378 set optimtru90=" -g -no-ftz -traceback -ftrapuv -fp-stack-check " 378 379 else 379 380 echo "pas d option debug predefinie pour cette machine" … … 509 510 # if ( $< == "oui" ) then 510 511 # #remove old dimensions.h file 511 # \rm $libf/grid/dimensions.h512 # \rm -f $libf/grid/dimensions.h 512 513 # else 513 514 # exit … … 518 519 # Build the appropriate 'dimensions.h' file 519 520 cd dimension 520 makdim $ntrac $dim521 ./makdim $ntrac $dim 521 522 # echo contents of dimensions.h to standard output 522 523 cat $libf/grid/dimensions.h … … 648 649 set f90=f90 649 650 else if $LINUX then 650 #set f77=pgf90 651 #set f90=pgf90 Aymeric 652 set f77=$WHERE_MPI/mpif90 653 set f90=$WHERE_MPI/mpif90 651 set f77=$WHERE_MPI/mpif90 #ifort 652 set f90=$WHERE_MPI/mpif90 #ifort 653 set opt_link=" -L$LIBOGCM -L$NCDFLIB -lnetcdf " 654 654 else if $SUN then 655 655 set f77=f90 … … 711 711 # l'optimisation de startvar se passe mal 712 712 # 713 if ($code == 'create_etat0' && $VPP) then714 if ( ! -f $libo/libdyn3d.a ) then715 echo "Priere de compiler gcm en premier pour des raisons d'optimisation"716 \rm $libf/grid/dimensions.h717 exit718 endif719 set optim90="$optim90"" -X9 -w"720 set opt_link="-L$NCDFLIB -lnetcdf"721 touch $LMDGCM/libf/dyn3d/startvar.F722 touch $LMDGCM/libf/dyn3d/etat0_netcdf.F723 endif713 #if ($code == 'create_etat0' && $VPP) then 714 # if ( ! -f $libo/libdyn3d.a ) then 715 # echo "Priere de compiler gcm en premier pour des raisons d'optimisation" 716 # \rm $libf/grid/dimensions.h 717 # exit 718 # endif 719 # set optim90="$optim90"" -X9 -w" 720 # set opt_link="-L$NCDFLIB -lnetcdf" 721 # touch $LMDGCM/libf/dyn3d/startvar.F 722 # touch $LMDGCM/libf/dyn3d/etat0_netcdf.F 723 #endif 724 724 725 725 # … … 745 745 set optimtru90=" $optimtru90 -I$libo " 746 746 else if $LINUX then 747 set optim90="$optim90 -module $libo" 748 set optimtru90="$optimtru90 -module $libo" 747 # Ehouarn : adapt to gfortran 748 set optim="$optim -I${libo}" 749 set optim90="$optim90 -I${libo}" 750 set optimtru90="$optimtru90 -ffree-form -I${libo}" 749 751 # Ehouarn: remove set mod_loc_dir def below; mod_loc_dir=$localdir (set above) 750 752 # set mod_loc_dir=$libo … … 766 768 echo $make -f $LMDGCM/makefile \ 767 769 OPTION_DEP="$opt_dep" OPTION_LINK="$opt_link" \ 770 OPTIM="$optim" \ 768 771 OPTIM90="$optim90" \ 769 772 OPTIMTRU90="$optimtru90" \ … … 790 793 $make -f $LMDGCM/makefile \ 791 794 OPTION_DEP="$opt_dep" OPTION_LINK="$opt_link" \ 795 OPTIM="$optim" \ 792 796 OPTIM90="$optim90" \ 793 797 OPTIMTRU90="$optimtru90" \ -
trunk/mesoscale/LMD_MM_MARS/prepare_ini
r51 r78 63 63 cd ${here}/WPS/geogrid 64 64 cp -f ${sourcewps}/geogrid/GEOGRID.TBL.ARW GEOGRID.TBL 65 echo "attention GEOGRID.TBL n est pas le bon !!!!" 65 66 cp -f ${sourcewps}/geogrid/Makefile . 66 67 mkdir src … … 72 73 cd ${here}/WPS/metgrid 73 74 cp -f ${sourcewps}/metgrid/METGRID.TBL.ARW METGRID.TBL 75 echo "attention METGRID.TBL n est pas le bon !!!!" 74 76 cp -f ${sourcewps}/metgrid/Makefile . 75 77 mkdir src
Note: See TracChangeset
for help on using the changeset viewer.