Changeset 1247 for trunk/MESOSCALE/LMD_MM_MARS
- Timestamp:
- May 11, 2014, 3:56:22 PM (11 years ago)
- Location:
- trunk/MESOSCALE/LMD_MM_MARS
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/SIMU/DEF/newphys_THARSIS_WATER/callphys.def.mars0
r1187 r1247 148 148 photochem = .false. 149 149 150 # SCATTERERS: set number of scatterers. must be compliant with preceding options. 151 naerkind = 2 152 153 150 154 ## Thermospheric options (relevant if tracer=T) : 151 155 ##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trunk/MESOSCALE/LMD_MM_MARS/SIMU/DEF/newphys_THARSIS_WATER/callphys.def.mars11_radact
r1187 r1247 142 142 photochem = .false. 143 143 144 # SCATTERERS: set number of scatterers. must be compliant with preceding options. 145 naerkind = 2 146 147 144 148 ## Thermospheric options (relevant if tracer=T) : 145 149 ##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trunk/MESOSCALE/LMD_MM_MARS/SIMU/DEF/newphys_THARSIS_WATER/callphys.def.mars12_radact_scav
r1115 r1247 140 140 photochem = .false. 141 141 142 # SCATTERERS: set number of scatterers. must be compliant with preceding options. 143 naerkind = 2 144 145 142 146 ## Thermospheric options (relevant if tracer=T) : 143 147 ##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trunk/MESOSCALE/LMD_MM_MARS/SIMU/DEF/newphys_THARSIS_WATER/callphys.def.mars1_radact
r1187 r1247 145 145 photochem = .false. 146 146 147 # SCATTERERS: set number of scatterers. must be compliant with preceding options. 148 naerkind = 2 149 150 147 151 ## Thermospheric options (relevant if tracer=T) : 148 152 ##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trunk/MESOSCALE/LMD_MM_MARS/SIMU/DEF/newphys_THARSIS_WATER/callphys.def.mars2
r1187 r1247 147 147 photochem = .false. 148 148 149 # SCATTERERS: set number of scatterers. must be compliant with preceding options. 150 naerkind = 2 151 152 149 153 ## Thermospheric options (relevant if tracer=T) : 150 154 ##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trunk/MESOSCALE/LMD_MM_MARS/SIMU/DEF/newphys_THARSIS_WATER/callphys.def.mars3
r1187 r1247 144 144 photochem = .false. 145 145 146 # SCATTERERS: set number of scatterers. must be compliant with preceding options. 147 naerkind = 2 148 149 146 150 ## Thermospheric options (relevant if tracer=T) : 147 151 ##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trunk/MESOSCALE/LMD_MM_MARS/SIMU/runmeso
r1045 r1247 191 191 echo '** Domain(s) >>> '${nest} 192 192 echo '** Tracer(s) >>> '${tracers} 193 194 ############ SCATTERERS SCATTERERS ######195 if [[ ${newphys} -eq 1 ]]196 then197 #### CHANGE THIS IF YOU ADD NEW SCENARIOS198 case ${mars_scenario} in199 0) scat=1 ;;200 1) echo "!! How many scatterers are you using : 1,2,..." ; read scat ;;201 2) scat=1 ;;202 3) scat=1 ;;203 11) echo "!! How many scatterers are you using : 1,2,..." ; read scat ;;204 12) echo "!! How many scatterers are you using : 1,2,..." ; read scat ;;205 20) scat=1 ;;206 *) scat=1 ;;207 esac208 echo '** Scatterers >>> '${scat}209 else210 #### USELESS here BUT COMPATIBILITY211 scat=1212 fi213 #########################################214 215 193 echo '** Grid points >>> '${nx}" x "${ny}" x "${nz} 216 194 echo '** Horizontal resolution >>> '${dx} … … 379 357 cd ${simu_folder} 380 358 ## corresponding executables 381 wrfexe=${work_folder}/wrf_x${nx}_y${ny}_z${nz}_d${nest}_t${tracers}_p${numproc} _s${scat}.exe382 realexe=${work_folder}/real_x${nx}_y${ny}_z${nz}_d${nest}_t${tracers}_p${numproc} _s${scat}.exe359 wrfexe=${work_folder}/wrf_x${nx}_y${ny}_z${nz}_d${nest}_t${tracers}_p${numproc}.exe 360 realexe=${work_folder}/real_x${nx}_y${ny}_z${nz}_d${nest}_t${tracers}_p${numproc}.exe 383 361 if [[ ${fresh} -eq 0 && -f ${wrfexe} ]] 384 362 then … … 404 382 touch ${simu_folder}/makemeso_input 405 383 echo ${compilo} >> ${simu_folder}/makemeso_input 406 if [[ "${compilo}" = "3" || "${compilo}" = "5" ]] 384 if [[ ${newphys} -eq 0 ]] 385 then 386 if [[ "${compilo}" = "3" || "${compilo}" = "5" ]] 407 387 then 408 388 echo ${numproc} >> ${simu_folder}/makemeso_input 409 fi 410 echo ${nx} >> ${simu_folder}/makemeso_input 411 echo ${ny} >> ${simu_folder}/makemeso_input 389 fi 390 echo ${nx} >> ${simu_folder}/makemeso_input 391 echo ${ny} >> ${simu_folder}/makemeso_input 392 fi 412 393 echo ${nz} >> ${simu_folder}/makemeso_input 413 394 echo ${nest} >> ${simu_folder}/makemeso_input 414 echo ${tracers} >> ${simu_folder}/makemeso_input 415 if [[ ${newphys} -eq 1 ]] 416 then 417 echo ${scat} >> ${simu_folder}/makemeso_input 418 #echo 'n' >> ${simu_folder}/makemeso_input 395 if [[ ${newphys} -eq 0 ]] 396 then 397 echo ${tracers} >> ${simu_folder}/makemeso_input 419 398 fi 420 399 # -
trunk/MESOSCALE/LMD_MM_MARS/SRC/SCRIPTS/NETCDF/gfortran_netcdf4
r331 r1247 1 1 #! /bin/bash 2 2 3 ze_netcdf=netcdf-4.0.1 4 #ze_netcdf=netcdf-3.6.1 3 5 4 ##wget http://www.lmd.jussieu.fr/~hourdin/PATCH_LMDZ4OR_G95/netcdf-3.6.1.tar.gz 5 ##gunzip netcdf-3.6.1.tar.gz 6 #tar xvf netcdf-3.6.1.tar 7 #cd netcdf-3.6.1 8 9 cp /donnees/emlmd/Downloads/Software/netcdf-4.0.1.tar.gz . 10 gunzip netcdf-4.0.1.tar.gz 11 tar xvf netcdf-4.0.1.tar 12 cd netcdf-4.0.1 13 14 #export CC=gcc 15 #export CXX=g++ 16 #export CPP='gcc -E' 17 #export FC=gfortran 18 #export F77=gfortran 19 #export F90=gfortran 20 #export CFLAGS='-O2 -DpgiFortran' 21 #export CXXFLAGS='-O2 -DpgiFortran' 22 #export CPPFLAGS='-DpgiFortran' 23 #export FFLAGS='-O2 -fno-second-underscore' 24 #export FCFLAGS='-O2 -fno-second-underscore' 25 #export F90FLAGS='-O2 -fno-second-underscore' 6 wget ftp://ftp.unidata.ucar.edu/pub/netcdf/$ze_netcdf.tar.gz 7 tar xzvf $ze_netcdf.tar.gz 8 \rm $ze_netcdf.tar.gz 26 9 27 10 export FC=gfortran … … 35 18 export CXXFLAGS="-O2" 36 19 37 mkdir /donnees/aslmd/MODELES/MESOSCALE_DEV/NETCDF/netcdf64-4.0.1_gfortran 38 ./configure --prefix=/donnees/aslmd/MODELES/MESOSCALE_DEV/NETCDF/netcdf64-4.0.1_gfortran #> configure.log 2>&1 39 make #> make.log 2>&1 40 make test #> make_test.log 2>&1 41 make install #> make_install.log 2>&1 20 mv $ze_netcdf gfortran_$ze_netcdf 21 cd gfortran_$ze_netcdf 22 PREFIX=$PWD 23 if [[ "$ze_netcdf" == "netcdf-3.6.1" ]] 24 then 25 cd src 26 fi 42 27 43 #cd src 44 ## Compilation 45 #./configure 46 #make check 47 #make install 48 28 ./configure --prefix=${PREFIX} #--disable-cxx 29 make > make.log 2>&1 30 make test > make.log 2>&1 31 make install > make.log 2>&1 -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F.new
r1236 r1247 584 584 585 585 !! Read callphys.def !! 586 call conf_phys(n q)586 call conf_phys(ngrid,nlayer,nq) 587 587 588 588 #endif -
trunk/MESOSCALE/LMD_MM_MARS/makemeso
r1243 r1247 207 207 tra=1 208 208 fi 209 fi210 # scatterers: a specific stuff for newphys211 if [[ "${phys}" == "newphys_" ]]212 then213 echo "How many types of scatterer are you using ? 1 [dust] or 2 [dust + water ice]" ; read scat214 else215 scat=1 ## dummy stuff216 209 fi 217 210 fi … … 367 360 if [[ "${phys}" == "newphys_" ]] 368 361 then 369 echo you have ${scat} scatterers370 362 echo number of processors can be changed without recompiling 371 363 echo x points can be changed without recompiling … … 398 390 echo ${tra} >> last 399 391 fi 400 echo ${scat} >> last401 #echo ${answer} >> last402 392 403 393 #------------ … … 713 703 ln -sf ../dyn3d/gr_fi_dyn.F . ## dommage, a corriger 714 704 ############################### 715 \rm scatterers.h716 cat << EOF > scatterers.h717 !-----------------------------------------------------------------------718 ! INCLUDE 'scatterers.h'719 !720 ! Number of kind of tracer radiative properties721 ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~722 ! (ex: naerkind=1 if you use one dust mode without ice ...)723 ! (ex: naerkind=2 if you use one dust mode and active ice ...)724 !-----------------------------------------------------------------------725 726 integer, parameter :: naerkind=${scat}727 728 !-----------------------------------------------------------------------729 EOF730 705 ############################### 731 706 ############################### … … 789 764 # save a copy 790 765 #-------------- 791 cp -f libo/liblmd.a libo/liblmd.a_${lon}_${lat}_${level}_${dom}_${tra} _${scat}766 cp -f libo/liblmd.a libo/liblmd.a_${lon}_${lat}_${level}_${dom}_${tra} 792 767 echo '****************************************' 793 768 … … 849 824 echo 'Looks good ! wrf.exe is here...' 850 825 fi 851 cp -f real.exe ../../real_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc} _s${scat}.exe852 cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc} _s${scat}.exe826 cp -f real.exe ../../real_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.exe 827 cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.exe 853 828 cd .. ;; 854 829 'ideal') #mkdir 'test/em_quarter_ss' 2> /dev/null … … 865 840 echo 'Looks good ! wrf.exe is here...' 866 841 fi 867 cp -f ideal.exe ../../ideal_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc} _s${scat}.exe868 cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc} _s${scat}.exe842 cp -f ideal.exe ../../ideal_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.exe 843 cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.exe 869 844 cd .. ;; 870 845 'les') echo '>>> YOUR CONFIG IS : '${config} … … 881 856 echo 'Looks good ! wrf.exe is here...' 882 857 fi 883 cp -f ideal.exe ../../ideal_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc} _s${scat}.exe884 cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc} _s${scat}.exe858 cp -f ideal.exe ../../ideal_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.exe 859 cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.exe 885 860 cd .. ;; 886 861 *) echo not supported... please use ; echo ideal les ; exit ;; … … 894 869 echo 'done.' 895 870 echo '****************************************' 896 cp last ../makemeso_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc} _s${scat}871 cp last ../makemeso_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc} 897 872 mv last ../../ 898 svn info ../../ > ../makemeso_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc} _s${scat}.svn.info873 svn info ../../ > ../makemeso_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.svn.info 899 874 900 875 # add here specific messages
Note: See TracChangeset
for help on using the changeset viewer.