Ignore:
Timestamp:
Jul 21, 2017, 4:07:38 PM (8 years ago)
Author:
mlefevre
Message:

Add of Venus mesoscale structure + update of Venus LES

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/makemeso

    r1653 r1724  
    7474# makemeso -p mars_lmd_new   ## choose physics
    7575#             venus_lmd_new
     76#             generic_lmd_new
     77#             titan_lmd_new
    7678#
    7779# makemeso -f                ## fresh start [clean -a]
     
    242244      cd ..
    243245
    244      else
    245       cd ${conf_wrf}/WRFV2
    246       cd Registry ; ./Registry.bash ; cd ..
     246     # remove files adapted to parallel GCM and useless for mesoscale
     247     #cd mars_lmd
     248     #cd libf/phymars
     249     #\rm tabfi* soil_settings* phyetat0* phyredem* iostart* writediagfi* mkstat* writediagsoil* eofdump* wstats* inistats* mod_*
     250     #\rm iniphysiq* init_phys_lmdz* comgeomphy* planetwide_mod*
     251     #mv ../dyn3d/control_mod.F90 .
     252     #cd ../..
     253     #cd ..
     254
     255    else
     256         if [[ "${config}" == "les" ]]
     257         then
     258           #### NB: With physics: LES folder // Without physics : LESnophys_ folder
     259           #### ---- because differences in 'modif' folder ----
     260           #sed s+"PWD/SRC/"+"PWD/SRC/LES$phys/"+g SRC/SCRIPTS/copy_model > copy_model_tmp
     261           sed s+"PWD/SRC/"+"PWD/SRC/LES/"+g SRC/SCRIPTS/copy_model > copy_model_tmp
     262         else
     263           cp SRC/SCRIPTS/copy_model copy_model_tmp
     264         fi   
     265     chmod 755 copy_model_tmp
     266     ./copy_model_tmp
     267     \rm copy_model_tmp
     268     mv zeWRFV2 ${conf_wrf}/WRFV2
     269     cd ${conf_wrf}/WRFV2
     270     cd Registry ; ./Registry.bash ; cd ..
    247271     fi
    248272          #### sparadrap consequent a l'utilisation de copy_model pour les liens
     
    390414                       then
    391415                         sed s+"-lnetcdf"+"-lnetcdf -L../$phys/libo -llmd $NETCDF/lib/libnetcdf.a"+g   configure.wrf > yeah ; mv -f yeah configure.wrf
     416                         #sed s+"O3"+"O3"+g configure.wrf > yeah ; mv -f yeah configure.wrf
    392417                       else
    393418                         sed s+"-lnetcdf"+"-lnetcdf $NETCDF/lib/libnetcdf.a"+g   configure.wrf > yeah ; mv -f yeah configure.wrf
     
    456481                         mv -f yeah configure.wrf ;;
    457482     mpifort_64)     # MPI+IFORT, 64 bits, no nesting / nesting
    458                        echo 9 | configure > log_compile 2> log_error
     483                       echo 9 | ./configure > log_compile 2> log_error
    459484                       sed -f physics.sed configure.wrf > yeah ; mv -f yeah configure.wrf
    460485                       sed s+"-f90=ifort"+" "+g configure.wrf > yeah ; mv -f yeah configure.wrf
     
    467492                             then
    468493                             echo 'DEBUG DEBUG DEBUG DEBUG'
    469                              sed s+"# -g"+" -g -no-ftz -traceback -ftrapuv -fp-stack-check -check"+g configure.wrf > yeah
     494                             sed s+"#-g"+" -g -no-ftz -traceback -ftrapuv -fp-stack-check -check"+g configure.wrf > yeah
    470495                             mv -f yeah configure.wrf
    471496                       fi
     
    487512                         sed s+"mpicc"+"mpicc -DMPI2_SUPPORT"+g configure.wrf > yeah ; mv -f yeah configure.wrf
    488513                         ## !!! NETCDF must be defined
    489                          sed s+"-L../$phys/libo -llmd"+"-L../$phys/libo -llmd $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah
     514                         if [[ "${phys}" != *"void"* ]]
     515                           sed s+"-L../$phys/libo -llmd"+"-L../$phys/libo -llmd $NETCDF/lib/libnetcdf.a $NETCDF/lib/libnetcdff.a"+g configure.wrf > yeah
     516                         else
     517                           sed s+"-lesmf_time"+"-lesmf_time $NETCDF/lib/libnetcdf.a $NETCDFF/lib/libnetcdff.a"+g configure.wrf > yeah
     518                         fi
    490519                         mv -f yeah configure.wrf
    491520                         #### POUR LE TRAITEMENT PARTICULIERS des NESTS sur iDATAPLEX [cf. module_lmd_driver]
     
    585614    sed s+"LIB_BUNDLED     = "+"LIB_BUNDLED     =    /usr/lib64/liblapack.so  \ "+g configure.wrf > yeah ; mv -f yeah configure.wrf
    586615    #sed s+"RWORDSIZE       =       "+"RWORDSIZE       =       8 # "+g configure.wrf > yeah ; mv -f yeah configure.wrf
     616    #sed s+"PROMOTION       =       -i4"+'PROMOTION       = -real-size "expr 8 \* $(RWORDSIZE)" -i4'+g configure.wrf > yeah ; mv -f yeah configure.wrf
     617    #sed s+"PROMOTION       =       -i4"+"PROMOTION       =       -real_size 64 -i4"+g configure.wrf > yeah ; mv -f yeah configure.wrf
    587618    #sed s+"-DLWORDSIZE=4 "+"-DLWORDSIZE=8 "+g configure.wrf > yeah ; mv -f yeah configure.wrf
    588619    #sed s+"-DIWORDSIZE=4 "+"-DIWORDSIZE=8 "+g configure.wrf > yeah ; mv -f yeah configure.wrf
     
    673704  then
    674705    cd libf/phyvenus
     706  elif [[ "${phys}" == *"generic"* ]]
     707  then
     708    cd libf/phystd
     709  elif [[ "${phys}" == *"titan"* ]]
     710  then
     711    cd libf/phytitan
    675712  fi
    676713  \rm dimphys.h 2> /dev/null
    677 if [[ "${phys}" == "newphys_" ]]
    678 then
    679   ln -sf ../../meso_dimphys.h_ref . ## ne sert plus !!
    680 else
    681   if [[ "${phys}" == "mars_lmd" ]]
     714  #if [[ "${phys}" == "newphys_" ]]
     715  #then
     716  #  ln -sf ../../meso_dimphys.h_ref . ## ne sert plus !!
     717  #else
     718  if [[ "${phys}" != "newphys_" ]]
    682719  then
    683720    physize=$(expr ${physx} \* ${physy})
     
    685722    head -15 dimphys.h
    686723  fi
    687      #### TEST new new phys
     724     ### TEST new new phys
    688725     #if [[ "${phys}" == "newphys_" ]]
    689726     #then
    690727     #  touch gr_fi_dyn.F.lien
    691728     #    ln -sf ../dyn3d/gr_fi_dyn.F .  ## dommage, a corriger
    692      ################################
    693      ################################
    694      ################################
     729     ###############################
     730     ###############################
     731     ###############################
    695732     #fi
    696      ####
    697      ####
     733     ###
     734     ###
    698735  cd ../..
    699736
     
    711748  echo compilation info in:
    712749  echo $PWD/libo/log_compile_phys
    713 
     750 
    714751  if [ ${debug} -ne 0 ] 
    715752  then
     
    717754    then
    718755      echo 'DEBUG DEBUG DEBUG DEBUG'
    719       nohup makegcm_${compilo} -debug -full -t ${tra} -p mars -d ${physz} testphys1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
     756      nohup makegcm_${compilo} debug -t ${tra} -p mars -d ${physz} testphys1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
    720757    elif [[ "${phys}" == *"venus"* ]]
    721758    then
    722759      echo 'DEBUG DEBUG DEBUG DEBUG'
    723       nohup makelmdz -debug -full -p venus -d 181 rcm1d -arch linux-ifort -cpp MESOSCALE | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
     760      nohup ./makelmdz -debug -full -p venus -d 181 rcm1d -arch X64_MESU -cpp MESOSCALE | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
     761    elif [[ "${phys}" == *"generic"* ]]
     762    then
     763      echo 'DEBUG DEBUG DEBUG DEBUG'
     764      nohup ./makegcm_ifort -debug -t ${tra} -p std -b 36x32 -d 25 rcm1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
     765      #nohup ./makegcm_ifort -t ${tra} -p std -b 36x32 -d 25 rcm1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
    724766    fi
    725767  else
    726   if [[ "${phys}" == *"mars"* ]]
     768    if [[ "${phys}" == *"mars"* ]]
    727769    then
    728770      nohup makegcm_${compilo} -t ${tra} -p mars -d ${physz} testphys1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
    729771    elif [[ "${phys}" == *"venus"* ]]
    730772    then
    731       nohup makelmdz -full -p venus -d 51 rcm1d -arch linux-ifort -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
     773      nohup ./makelmdz -full -p venus -d 51 rcm1d -arch linux-ifort_meso -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys # on /u/ and /planeto/
     774      nohup ./makelmdz -p venus -d 51 rcm1d -arch linux-ifort_meso -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
     775      #nohup ./makelmdz -full -p venus -d 51 rcm1d -arch CICLADifort -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys # on CICLAD
     776      #nohup ./makelmdz -p venus -d 51 rcm1d -arch CICLADifort -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
     777      #nohup ./makelmdz -full -p venus -d 51 rcm1d -arch X64_MESU -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys #on MESU
     778      #nohup ./makelmdz -p venus -d 51 rcm1d -arch X64_MESU -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
     779      #nohup makelmdz -full -p venus -d 51 rcm1d -arch X64_OCCIGEN -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys #on OCCIGEN
     780      #nohup makelmdz -p venus -d 51 rcm1d -arch X64_OCCIGEN -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
    732781    fi
    733782  fi
     
    742791  cd libo
    743792  mkdir temp
    744   if [[ "${phys}" == *"venus"* ]]
    745   then
    746     cp -f linux*/*.a temp/
     793  if [[ ("${phys}" == *"venus"*) ]]
     794  then
     795    cp -f linux*/*.a temp/ # on /u/ and /planeto/
     796    #cp -f /home/mlefevre/modipsl/lib/libioipsl.a temp/ #on CICLAD
     797    #cp -f X64*/*.a temp #on MESU and OCCIGEN
    747798    cp -f ../ioipsl/libioipsl.a temp/
    748799  else
     
    755806   ar x libphymars.a
    756807   ar x libaeronomars.a
    757   else
     808  elif [[ "${phys}" == *"venus"* ]]
     809  then
    758810   ar x libphyvenus.a
    759811   ar x libmisc.a
     
    769821  # finish merge
    770822  cd ..
     823  echo ${phys}
    771824  if [[ "${phys}" == *"new"* ]]
    772825  then
     
    775828      # include modules for interfacing
    776829      mv  *.mod ../inc/
    777     else # [[ "${phys}" == *"venus"* ]]
    778       mv  ./libo/linux*/*.mod ../inc/
     830    elif  [[ ("${phys}" == *"venus"*)]]
     831    then
     832      mv  ./libo/linux*/*.mod ../inc/ # on /u/ and /planeto/
     833      #mv  ./libo/CICLAD*/*.mod ../inc/ # on CICLAD
     834      #mv  ./libo/X64*/*.mod ../inc/ # on MESU and OCCIGEN
    779835      cp -f ./ioipsl/*.mod ../inc/
    780      
    781836    fi
    782837  fi
Note: See TracChangeset for help on using the changeset viewer.