Ignore:
Timestamp:
Aug 30, 2016, 3:04:29 PM (8 years ago)
Author:
aslmd
Message:

moved interface for outputs from module_lmd_driver to update_outputs_physiq_mod. updated the nophysics case by adding a case dynphy_wrf_void_lmd_new which will serve as a template for a physiq interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/makemeso

    r1588 r1590  
    4949   e ) from_scratch=1;;       ## a fresh start with a completely new folder
    5050   s ) scenario="${OPTARG}";; ## a specific scenario (with precompiling flags)
    51    x ) donotcompile=1;phys="nophys_";donotcompilephys=1;; ## a case with no LMD physics included
     51   x ) donotcompile=1;phys="void_lmd_new";donotcompilephys=1;; ## a case with no LMD physics included
    5252   h ) echo "
    5353# Use:   
     
    130130  esac
    131131  # number of processors
    132   if [[ "${phys}" == *"new"* ]] || [[ "${phys}" == "nophys_" ]]
     132  if [[ "${phys}" == *"new"* ]] #|| [[ "${phys}" == "nophys_" ]]
    133133  then
    134134   numproc=999
     
    183183    \rm what_folder 2> /dev/null
    184184    echo ${conf_wrf} > what_folder
    185          if [ ${donotcompile} -eq 1 ]
     185         if [ ${donotcompile} -eq 0 ]
    186186         then
    187             #\rm what_folder 2> /dev/null
    188             #echo '**********************'
    189             #echo '*** Your folder is ...'
    190             #echo '**********************'
    191             #echo ${conf_wrf} | tee what_folder
    192             #cat what_folder
    193             #echo ${conf_wrf} > what_folder
    194             #echo ${reply} > what_compilo
    195             #echo ${numproc} > what_numproc
    196             if [[ "${phys}" != "nophys_" ]]
    197             then
    198               exit
    199             fi
    200          else
     187            ##\rm what_folder 2> /dev/null
     188            ##echo '**********************'
     189            ##echo '*** Your folder is ...'
     190            ##echo '**********************'
     191            ##echo ${conf_wrf} | tee what_folder
     192            ##cat what_folder
     193            ##echo ${conf_wrf} > what_folder
     194            ##echo ${reply} > what_compilo
     195            ##echo ${numproc} > what_numproc
     196            #if [[ "${phys}" != "nophys_" ]]
     197            #then
     198            #  exit
     199            #fi
     200         #else
    201201            # tracers: now dynamically set in newphys 09/2013
    202202            if [[ "${phys}" == *"new"* ]]
     
    602602
    603603  ################
    604   if [[ "${phys}" == "nophys_" ]]
    605   then
    606      if [[ "${config}" == "les" ]]  ### LES is different because of WRFV3
    607      then
    608        sed s+"ARCH_LOCAL      =       "+"ARCH_LOCAL      =       -DNOPHYS "+g configure.wrf > yeah ; mv -f yeah configure.wrf
    609        sed s+"-L../$phys/libo -llmd"+""+g configure.wrf > yeah ; mv -f yeah configure.wrf
    610      else
    611        ### not tested yet but should be working 
    612        echo CAUTION CAUTION CAUTION NOT FULLY TESTED
    613        sed s+"ARCHFLAGS       =       "+"ARCHFLAGS       =       -DNOPHYS "+g configure.wrf > yeah ; mv -f yeah configure.wrf
    614        sed s+"-L../$phys/libo -llmd"+""+g configure.wrf > yeah ; mv -f yeah configure.wrf
    615      fi
    616   fi
     604  #if [[ "${phys}" == "nophys_" ]]
     605  #then
     606  #   if [[ "${config}" == "les" ]]  ### LES is different because of WRFV3
     607  #   then
     608  #     sed s+"ARCH_LOCAL      =       "+"ARCH_LOCAL      =       -DNOPHYS "+g configure.wrf > yeah ; mv -f yeah configure.wrf
     609  #     sed s+"-L../$phys/libo -llmd"+""+g configure.wrf > yeah ; mv -f yeah configure.wrf
     610  #   else
     611  #     ### not tested yet but should be working 
     612  #     echo CAUTION CAUTION CAUTION NOT FULLY TESTED
     613  #     sed s+"ARCHFLAGS       =       "+"ARCHFLAGS       =       -DNOPHYS "+g configure.wrf > yeah ; mv -f yeah configure.wrf
     614  #     sed s+"-L../$phys/libo -llmd"+""+g configure.wrf > yeah ; mv -f yeah configure.wrf
     615  #   fi
     616  #fi
    617617  ################
    618618
     
    792792  echo 2. compiling WRF dynamical core ...
    793793
    794   if [[ "${phys}" == "nophys_" ]]
    795   then
    796   echo 'NO LMD PHYSICS included'
    797   else
    798   if [[ ! ( -f "call_meso_physiq.inc" ) ]]
    799   then
    800     echo 'did you compile the physics ? no call_meso_physiq.inc !'
    801     exit
    802   fi
    803   fi
     794  #if [[ "${phys}" == "nophys_" ]]
     795  #then
     796  # echo 'NO LMD PHYSICS included'
     797  #else
     798  # if [[ ! ( -f "call_meso_physiq.inc" ) ]]
     799  # then
     800  #  echo 'did you compile the physics ? no call_meso_physiq.inc !'
     801  #  exit
     802  # fi
     803  #fi
    804804
    805805  # be sure to compile with the most recent physics
Note: See TracChangeset for help on using the changeset viewer.