Ignore:
Timestamp:
Aug 28, 2016, 11:28:26 PM (8 years ago)
Author:
aslmd
Message:

modified makemeso and copy_model to make those compliant for coupling with other physics. thanks to Maxence Lefevre for part of the modifications to makemeso.

Location:
trunk/MESOSCALE/LMD_MM_MARS/SRC
Files:
1 edited
1 moved

Legend:

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

    r1582 r1588  
    11#! /bin/bash
    22
    3 ### this will become an argument
    4 laphysiq="mars_lmd_new"
    5 ###
     3##########################################################
     4laphysiq="mars_lmd" ## default value
     5config="" ## default value
     6while getopts "p:c:" options; do
     7  case $options in
     8   p ) laphysiq="${OPTARG}";;     ## choose physics
     9   c ) config="${OPTARG}";;     ## choose config
     10  esac
     11done
     12##########################################################
     13echo '*** copying physics: '$laphysiq
     14##########################################################
    615
    716echo '*** linking sources from ...'
    817WRFSRC=$PWD/SRC/
     18if [[ "${config}" == "les" ]]
     19then
     20  WRFSRC=$PWD/SRC/LES/
     21fi
    922echo $WRFSRC
    1023echo '*** to ...'
     
    2942ln -sf $WRFSRC/WRFV2/configure .
    3043ln -sf $WRFSRC/WRFV2/Makefile .
    31 ln -sf $WRFSRC/WRFV2/mars.sed* .
     44#ln -sf $WRFSRC/WRFV2/mars.sed* .
    3245ln -sf $WRFSRC/WRFV2/*.h .
    3346ln -sf $WRFSRC/WRFV2/configure.defaults.* .
    3447ln -sf $WRFSRC/WRFV2/call_meso_inifis?.inc .
    3548ln -sf $WRFSRC/WRFV2/call_meso_physiq?.inc .
     49
     50sed s+"YORGLYORGL"+"$laphysiq"+g $WRFSRC/WRFV2/physics.sed > physics.sed
    3651
    3752#\rm meso_dimphys.h
     
    124139mkdir external/io_mcel
    125140ln -sf $WRFSRC/WRFV2/external/io_mcel/* external/io_mcel/
    126 mkdir mars_lmd
    127 mkdir mars_lmd/libf
    128 ln -sf $WRFSRC/WRFV2/mars_lmd/makegcm* mars_lmd/
    129 ln -sf $WRFSRC/WRFV2/mars_lmd/meso_dimphys.h* mars_lmd/
    130 ln -sf $WRFSRC/WRFV2/mars_lmd/create_make_gcm mars_lmd/
    131 #ln -sf $WRFSRC/WRFV2/mars_lmd/makefile mars_lmd/
    132 ln -sf $WRFSRC/WRFV2/mars_lmd/libf/duplicate* mars_lmd/libf/
    133 ln -sf $WRFSRC/WRFV2/mars_lmd/libf/generate* mars_lmd/libf/
     141mkdir $laphysiq
     142mkdir $laphysiq/libf
     143ln -sf $WRFSRC/WRFV2/$laphysiq/makegcm* $laphysiq/
     144ln -sf $WRFSRC/WRFV2/$laphysiq/meso_dimphys.h* $laphysiq/
     145ln -sf $WRFSRC/WRFV2/$laphysiq/create_make_gcm $laphysiq/
     146#ln -sf $WRFSRC/WRFV2/$laphysiq/makefile $laphysiq/
     147ln -sf $WRFSRC/WRFV2/$laphysiq/libf/duplicate* $laphysiq/libf/
     148ln -sf $WRFSRC/WRFV2/$laphysiq/libf/generate* $laphysiq/libf/
    134149
    135 mkdir mars_lmd/libf/grid
    136 ln -sf $WRFSRC/WRFV2/mars_lmd/libf/grid/* mars_lmd/libf/grid/
    137 mkdir mars_lmd/libf/phymars
    138 ln -sf $WRFSRC/WRFV2/mars_lmd/libf/phymars/* mars_lmd/libf/phymars/
    139 ln -sf $WRFSRC/WRFV2/mars_lmd/libf/phy_common/* mars_lmd/libf/phymars/
    140 mkdir mars_lmd/libf/dyn3d
    141 ln -sf $WRFSRC/WRFV2/mars_lmd/libf/dyn3d/* mars_lmd/libf/dyn3d/
    142 mkdir mars_lmd/libf/aeronomars
    143 ln -sf $WRFSRC/WRFV2/mars_lmd/libf/aeronomars/* mars_lmd/libf/aeronomars/
    144 mkdir mars_lmd/libf/bibio
    145 ln -sf $WRFSRC/WRFV2/mars_lmd/libf/bibio/* mars_lmd/libf/bibio/
    146 mkdir mars_lmd/libo
    147 #touch mars_lmd/makefile
     150mkdir $laphysiq/libf/grid
     151ln -sf $WRFSRC/WRFV2/$laphysiq/libf/grid/* $laphysiq/libf/grid/
     152mkdir $laphysiq/libf/phymars
     153ln -sf $WRFSRC/WRFV2/$laphysiq/libf/phymars/* $laphysiq/libf/phymars/
     154ln -sf $WRFSRC/WRFV2/$laphysiq/libf/phy_common/* $laphysiq/libf/phymars/
     155mkdir $laphysiq/libf/dyn3d
     156ln -sf $WRFSRC/WRFV2/$laphysiq/libf/dyn3d/* $laphysiq/libf/dyn3d/
     157mkdir $laphysiq/libf/aeronomars
     158ln -sf $WRFSRC/WRFV2/$laphysiq/libf/aeronomars/* $laphysiq/libf/aeronomars/
     159mkdir $laphysiq/libf/bibio
     160ln -sf $WRFSRC/WRFV2/$laphysiq/libf/bibio/* $laphysiq/libf/bibio/
     161mkdir $laphysiq/libo
     162#touch $laphysiq/makefile
    148163
    149164mkdir test
     
    152167ln -sf $WRFSRC/WRFV2/test/em_real/* test/em_real/
    153168
    154 cd mars_lmd/libf/phymars/
     169cd $laphysiq/libf/phymars/
    155170\rm dimphys.h
    156171#ln -sf ../../../meso_dimphys.h dimphys.h
  • trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/physics.sed

    r1587 r1588  
    1 s+ *../frame/module_internal_header_util.o ../frame/pack_utils.o -L../external/esmf_time_f90 -lesmf_time+& -L../mars_lmd/libo -llmd+g
     1s+ *../frame/module_internal_header_util.o ../frame/pack_utils.o -L../external/esmf_time_f90 -lesmf_time+& -L../YORGLYORGL/libo -llmd+g
    22
Note: See TracChangeset for help on using the changeset viewer.