Ignore:
Timestamp:
Sep 14, 2016, 5:23:09 PM (8 years ago)
Author:
mlefevre
Message:

modified makemeso and copy_model to work on Venus

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/SRC/SCRIPTS/copy_model

    r1590 r1597  
    7373mkdir phys
    7474ln -sf $WRFSRC/WRFV2/phys/* phys/
     75echo $laphysiq
    7576ln -sf $WRFSRC/WRFV2/phys/dynphy_wrf_$laphysiq/* phys/
    7677mkdir run
     
    137138mkdir external/io_mcel
    138139ln -sf $WRFSRC/WRFV2/external/io_mcel/* external/io_mcel/
    139 
     140echo ${laphysiq}
    140141if [[ "${laphysiq}" == *"void"* ]]
    141142then
     
    146147
    147148else
    148 
    149149  ## case with physics
     150  echo $laphysiq
    150151  mkdir $laphysiq
    151152  mkdir $laphysiq/libf
    152   ln -sf $WRFSRC/WRFV2/$laphysiq/makegcm* $laphysiq/
    153   ln -sf $WRFSRC/WRFV2/$laphysiq/meso_dimphys.h* $laphysiq/
    154   ln -sf $WRFSRC/WRFV2/$laphysiq/create_make_gcm $laphysiq/
    155   #ln -sf $WRFSRC/WRFV2/$laphysiq/makefile $laphysiq/
    156   ln -sf $WRFSRC/WRFV2/$laphysiq/libf/duplicate* $laphysiq/libf/
    157   ln -sf $WRFSRC/WRFV2/$laphysiq/libf/generate* $laphysiq/libf/
    158 
    159153  mkdir $laphysiq/libf/grid
    160154  ln -sf $WRFSRC/WRFV2/$laphysiq/libf/grid/* $laphysiq/libf/grid/
    161   mkdir $laphysiq/libf/phymars
    162   ln -sf $WRFSRC/WRFV2/$laphysiq/libf/phymars/* $laphysiq/libf/phymars/
    163   ln -sf $WRFSRC/WRFV2/$laphysiq/libf/phy_common/* $laphysiq/libf/phymars/
    164155  mkdir $laphysiq/libf/dyn3d
    165156  ln -sf $WRFSRC/WRFV2/$laphysiq/libf/dyn3d/* $laphysiq/libf/dyn3d/
    166   mkdir $laphysiq/libf/aeronomars
    167   ln -sf $WRFSRC/WRFV2/$laphysiq/libf/aeronomars/* $laphysiq/libf/aeronomars/
    168157  mkdir $laphysiq/libf/bibio
    169158  ln -sf $WRFSRC/WRFV2/$laphysiq/libf/bibio/* $laphysiq/libf/bibio/
     159  if [[ "${laphysiq}" == *"mars"* ]]
     160  then
     161    ln -sf $WRFSRC/WRFV2/$laphysiq/makegcm* $laphysiq/
     162    ln -sf $WRFSRC/WRFV2/$laphysiq/meso_dimphys.h* $laphysiq/
     163    ln -sf $WRFSRC/WRFV2/$laphysiq/create_make_gcm $laphysiq/
     164    #ln -sf $WRFSRC/WRFV2/$laphysiq/makefile $laphysiq/
     165    ln -sf $WRFSRC/WRFV2/$laphysiq/libf/duplicate* $laphysiq/libf/
     166    ln -sf $WRFSRC/WRFV2/$laphysiq/libf/generate* $laphysiq/libf/
     167    mkdir $laphysiq/libf/aeronomars
     168    ln -sf $WRFSRC/WRFV2/$laphysiq/libf/aeronomars/* $laphysiq/libf/aeronomars/
     169    mkdir $laphysiq/libf/phymars
     170    ln -sf $WRFSRC/WRFV2/$laphysiq/libf/phymars/* $laphysiq/libf/phymars/
     171    ln -sf $WRFSRC/WRFV2/$laphysiq/libf/phy_common/* $laphysiq/libf/phymars/
     172    ###
     173    \rm $laphysiq/libf/phymars/dimphys.h
     174  elif [[ "${laphysiq}" == *"venus"* ]]
     175  then
     176    ln -sf $WRFSRC/WRFV2/$laphysiq/makelmdz $laphysiq/
     177    ln -sf $WRFSRC/WRFV2/$laphysiq/deftank $laphysiq/
     178    ln -sf $WRFSRC/WRFV2/$laphysiq/arch* $laphysiq/
     179    ln -sf $WRFSRC/WRFV2/$laphysiq/tmp* $laphysiq/
     180    ln -sf $WRFSRC/WRFV2/$laphysiq/libf_gcm $laphysiq/
     181    ln -sf $WRFSRC/WRFV2/$laphysiq/makefile $laphysiq/
     182    ln -sf $WRFSRC/WRFV2/$laphysiq/make_dir $laphysiq/
     183    ln -sf $WRFSRC/WRFV2/$laphysiq/create_make_gcm $laphysiq/
     184    ln -sf $WRFSRC/WRFV2/$laphysiq/Tools $laphysiq/
     185    mkdir $laphysiq/libf/phyvenus
     186    ln -sf $WRFSRC/WRFV2/$laphysiq/libf/phyvenus/* $laphysiq/libf/phyvenus/
     187    mkdir $laphysiq/libf/phy_common
     188    ln -sf $WRFSRC/WRFV2/$laphysiq/libf/phy_common/* $laphysiq/libf/phy_common/
     189    mkdir $laphysiq/libf/misc
     190    ln -sf $WRFSRC/WRFV2/$laphysiq/libf/misc/* $laphysiq/libf/misc/
     191    mkdir $laphysiq/libf/filtrez
     192    ln -sf $WRFSRC/WRFV2/$laphysiq/libf/filtrez/* $laphysiq/libf/filtrez/
     193  fi
    170194  mkdir $laphysiq/libo
    171195  #touch $laphysiq/makefile
    172 
    173   \rm $laphysiq/libf/phymars/dimphys.h
    174196
    175197  sed s+"YORGLYORGL"+"$laphysiq"+g $WRFSRC/WRFV2/physics.sed > physics.sed
Note: See TracChangeset for help on using the changeset viewer.