source: lmdz_wrf/trunk/tools/prepare_compilation.bash @ 2343

Last change on this file since 2343 was 251, checked in by lfita, 10 years ago

It is example given e.g. !!!!

  • Property svn:executable set to *
File size: 1.6 KB
Line 
1#!/bin/bash
2## e.g. # foudre # prepare_compilation.bash /home/lluis/etudes/WRF_LMDZ/src /home/lluis/bin/gcc_netcdf/4.3.0 /home/lluis/DATA/WRF/WRFV3.3/phylmd/serial/WRFV3
3## e.g. # acuna #  prepare_compilation.bash /d4/lflmd/DATA/WRF/WRFV3.3/lmdz_phylmd/serial/WRFV3 /u/lflmd/bin/gcc_netcdf-4.3.0 /d4/lflmd/DATA/WRF/WRFV3.3/lmdz_phylmd/serial/WRFV3
4if test $1 = '-h'; then
5  echo "*********************************"
6  echo "*** preparing the compilation ***"
7  echo "***      of LMDZ and WRF      ***"
8  echo "*********************************"
9  echo "prepare_compilation.bash [WRF_LMDZsrc] [NETCDFhome] [place]"
10  echo "  [WRF_LMDZsrc]: source of the WRF + LMDZ coupling"
11  echo "  [NETCDFhome]: home of the netCDF libraries"
12  echo "  [place]: place where to compile)"
13
14else
15  rootsh=`pwd`
16  WRFsrc=$1
17  NETCDFhome=$2
18  place=$3
19
20  WRF2LMDZ='share/module_model_constants.mod:frame/module_domain_type.mod:frame/module_domain.mod'
21  LMDZ2WRF='control_mod.mod:indice_sol_mod.mod:surface_data.mod:mod_grid_phy_lmdz.mod:noread_limit_sub_variables.mod:wrf_lmdz_mod.mod:lmdz_wrf_variables_mod.mod:output_lmdz_nomodule.mod'
22  NETCDF2LMDZ='typesizes.mod:netcdf.mod:netcdf.inc'
23
24####### ###### ##### #### ### ## #
25
26  WLfiles=`echo ${WRF2LMDZ} | tr ':' ' '`
27  LWfiles=`echo ${LMDZ2WRF} | tr ':' ' '` 
28  NLfiles=`echo ${NETCDF2LMDZ} | tr ':' ' '`
29 
30  for file in ${WLfiles}; do
31    cp $place/${file} ${place}/lmdz
32  done
33
34# NOT necessary
35#  for file in ${LWfiles}; do
36#    cp $place/lmdz/${file} ${place}/phys
37#  done
38
39  for file in ${NLfiles}; do
40    cp $NETCDFhome/include/${file} $place/lmdz
41  done
42
43fi
Note: See TracBrowser for help on using the repository browser.