Changeset 2084


Ignore:
Timestamp:
Jul 9, 2014, 5:11:19 PM (10 years ago)
Author:
Ehouarn Millour
Message:

Small cosmetic change in makelmdz_fcm, use an empty dir strategy for optional packages rather than overwriting the bld.cfg file (causes issues when the later is a symbolic link).
EM

Location:
LMDZ5/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/bld.cfg

    r1990 r2084  
    2424src::dyn     %SRC_PATH/%DYN
    2525src::phys    %SRC_PATH/%PHYS
    26 #src::sisvat  %SRC_PATH/%PHYS/sisvat
    27 #src::rrtm  %SRC_PATH/%PHYS/rrtm
     26src::sisvat  %SISVAT
     27src::rrtm    %RRTM
    2828src::grid    %SRC_PATH/grid
    2929src::filtrez %SRC_PATH/filtrez
  • LMDZ5/trunk/makelmdz_fcm

    r1990 r2084  
    3737LIBOGCM=$LMDGCM/libo
    3838LIBFGCM=$LMDGCM/libf
     39# path for optional packages, but default set to ".void_dir"
     40RRTM_PATH=$LMDGCM/.void_dir
     41SISVAT_PATH=$LMDGCM/.void_dir
    3942COSP_PATH=$LMDGCM/.void_dir
    4043fcm_path=$LMDGCM/tools/fcm/bin
     
    304307then
    305308   CPP_KEY="$CPP_KEY CPP_SISVAT"
    306    sed -e 's/^#src::sisvat/src::sisvat/' bld.cfg > bld.tmp
    307    mv bld.tmp bld.cfg
     309   SISVAT_PATH="$LIBFGCM/%PHYS/sisvat"
    308310fi
    309311
     
    311313then
    312314   CPP_KEY="$CPP_KEY CPP_RRTM"
    313    sed -e 's/^#src::rrtm/src::rrtm/' bld.cfg > bld.tmp
    314    mv bld.tmp bld.cfg
     315   RRTM_PATH="$LIBFGCM/%PHYS/rrtm"
    315316fi
    316317
     
    492493echo "%DYN           $DYN"           >> $config_fcm
    493494echo "%PHYS          phy${physique}" >> $config_fcm
     495echo "%RRTM          $RRTM_PATH"     >> $config_fcm
     496echo "%SISVAT        $SISVAT_PATH"   >> $config_fcm
    494497echo "%COSP          $COSP_PATH"     >> $config_fcm
    495498echo "%CPP_KEY       $CPP_KEY"       >> $config_fcm
     
    520523ln -s $LIBOGCM/${arch}${SUFF_NAME}/.config/tmp tmp_src
    521524
    522 #eventual cleanup for SISVAT
    523 sed -e 's/^src::sisvat/#src::sisvat/' bld.cfg > bld.tmp
    524 mv bld.tmp bld.cfg
    525 
    526 #eventual cleanup for RRTM
    527 sed -e 's/^src::rrtm/#src::rrtm/' bld.cfg > bld.tmp
    528 mv bld.tmp bld.cfg
    529 
    530525
    531526if [[ -r $LIBFGCM/grid/dimensions.h ]]
Note: See TracChangeset for help on using the changeset viewer.