Changes in / [77783e3:cc6abaa] in flexpart.git


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • create_tarball.sh

    ra816416 r6616daf  
    22
    33#define version number
    4 version=10.3beta5
     4version=10.3beta 
    55
    66# define tarball name
    7 targetdir=../flexpart_distribution/
    8 tarball_tmp=${targetdir}flexpart_v$version
     7tarball_tmp=flexpart_v$version
    98
    109# clean old package
    11 if [ -d $tarball_tmp ]; then
    12   echo $tarball_tmp exists: move to $tarball_tmp.bk   
    13   mv $tarball_tmp ${tarball_tmp}.bk
    14   exit
    15 fi
     10rm -r $tarball_tmp
    1611
    17 echo ---------------------------------------------------------
    18 echo ')' create basic dir structure
     12# create basic dir structure
    1913mkdir $tarball_tmp
    20 echo ---------------------------------------------------------
    21 echo ---------------------------------------------------------
    22 ##############################################################
    23 echo ')' pathnames
    24 #cp pathnames_distribution $tarball_tmp/pathnames
    25 cp pathnames $tarball_tmp/pathnames
    26 echo ---------------------------------------------------------
    27 ##############################################################
    28 echo ')' src/
    2914mkdir $tarball_tmp/src
     15
     16# copy fortran source files
    3017cp src/*.f90 $tarball_tmp/src
    3118cp -r src/gributils $tarball_tmp/src
    32 # echo '3)' copy makefile
     19
     20# copy makefile
    3321cp src/makefile $tarball_tmp/src
    3422#cp src/makefile.gfs $tarball_tmp/src
    35 echo ---------------------------------------------------------
    36 ################################################################
    37 echo ')' options
    38 # (for the distribution they work with the defult flex_ecmwf test winds)
    39 #cp -r options_flex_ecmwf_EA $tarball_tmp/options
    40 mkdir $tarball_tmp/options
    4123
    42 user_input_files="AGECLASSES     COMMAND        IGBP_int1.dat  OUTGRID        OUTGRID_NEST   RECEPTORS      RELEASES       surfdata.t     surfdepo.t"
     24# copy default options (for the distribution they work with the defult flex_ecmwf test winds)
     25# cp -r options $tarball_tmp
     26cp -r options_flex_ecmwf_EA $tarball_tmp/options
    4327
    44 for i in $user_input_files
    45 do
    46   echo $i
    47   cp -r options/$i $tarball_tmp/options
    48 done
     28# copy default pathnames
     29cp pathnames_distribution $tarball_tmp/pathnames
    4930
    5031
    51 mkdir $tarball_tmp/options/SPECIES
    52 cp options/SPECIES/SPECIES* $tarball_tmp/options/SPECIES/
    53 cp options/SPECIES/specoverview.f90 $tarball_tmp/options/SPECIES/
    54 echo ---------------------------------------------------------
    55 ################################################################
    56 echo ')' AVAILABLE
    57 #cp AVAILABLE_flex_ecmwf_EA $tarball_tmp/AVAILABLE
    58 cp AVAILABLE $tarball_tmp/AVAILABLE
    59 
    60 echo ---------------------------------------------------------
    61 ################################################################
    62 echo  ')' output / #  mkdir $tarball_tmp/output
    63 mkdir $tarball_tmp/output
    64 echo ---------------------------------------------------------
    65 ################################################################
    66 echo ')' preprocess/
     32# add ECMWF retrieve routines
    6733mkdir $tarball_tmp/preprocess
    68 #############################
    69 echo -----------------flex_extract-------------------
    70 #echo '6)'  mkdir $tarball_tmp/flex_extract [a separate repository]
    71 #mkdir $tarball_tmp/preprocess
    7234#mkdir $tarball_tmp/preprocess/flex_ecmwf
    7335mkdir $tarball_tmp/preprocess/flex_extract
     36#cp -r flex_ecmwf_src/* $tarball_tmp/preprocess/flex_ecmwf/
     37cp -r flex_ecmwf_src/* $tarball_tmp/preprocess/flex_extract/
    7438
    75 #echo '7)  add ECMWF retrieve routines (change EA wind files for latest source code)'
    76 #mkdir $tarball_tmp/preprocess/flex_extract
    77 #mkdir $tarball_tmp/preprocess/flex_extract/work
    78 #cp -r flex_ecmwf_src/* $tarball_tmp/preprocess/flex_ecmwf/
    79 #cp -r flex_ecmwf_src/* $tarball_tmp/preprocess/flex_extract/
    80 ## cp -r flex_extract/work/EA* $tarball_tmp/preprocess/flex_extract/work   
     39# copy default AVAILABLE
     40cp AVAILABLE_flex_ecmwf_EA $tarball_tmp/AVAILABLE
    8141
    8242
     43# directory for reading routines
     44mkdir $tarball_tmp/postprocess
     45
     46# add fortran reading routines
     47mkdir $tarball_tmp/postprocess/flex_read_fortran
     48cp postprocess/flex_read_fortran/*.f $tarball_tmp/postprocess/flex_read_fortran
     49cp postprocess/flex_read_fortran/*.f90 $tarball_tmp/postprocess/flex_read_fortran
     50cp postprocess/flex_read_fortran/makefile $tarball_tmp/postprocess/flex_read_fortran
     51
     52# add matlab reading routines
     53mkdir $tarball_tmp/postprocess/flex_read_matlab
     54cp postprocess/flex_read_matlab/*.m $tarball_tmp/postprocess/flex_read_matlab
     55
     56# examples
     57cp -r examples $tarball_tmp/
    8358
    8459
    85 #echo '10)' cp example generating scripts [a separate repository]
    86 #echo moved below
    87 
    88 #mkdir $tarball_tmp/examples
    89 #cp -r examples/*.sh $tarball_tmp/examples/
    90 #cp -r examples/Makefile $tarball_tmp/examples/
    91 echo ---------------------------------------------------------
    92 ################################################################
    93 echo postprocess/
    94 
    95 postprocess=postprocess
    96 mkdir $tarball_tmp/$postprocess
    97 echo -----------------flex_read_fortran-------------------
    98 #echo ')'  directory for reading routines
    99 #echo '12)'  add fortran reading routines [a separate repository]
    100 mkdir $tarball_tmp/$postprocess/flex_read_fortran
    101 cp $postprocess/flex_read_fortran/*.f $tarball_tmp/$postprocess/flex_read_fortran
    102 cp $postprocess/flex_read_fortran/*.f90 $tarball_tmp/$postprocess/flex_read_fortran
    103 cp $postprocess/flex_read_fortran/makefile $tarball_tmp/$postprocess/flex_read_fortran
    104 
    105 echo -----------------flex_read_matlab-------------------
    106 
    107 # add matlab reading routines
    108 #mkdir $tarball_tmp/postprocess/flex_read_matlab
    109 #cp postprocess/flex_read_matlab/*.m $tarball_tmp/postprocess/flex_read_matlab
    110 
    111 ###############################################################
    112 
    113 echo ---------------------------------------------------------
    114 echo tests/
    115 
    116 #echo '13) tests'
    11760mkdir $tarball_tmp/tests
    11861
    119 ###############################################################
    120 echo -----------------flex_read_fortran-------------------
    121 
    122 #echo 'b) ./tests/flex_read_fortran/'
    123 echo fixme
    124 #mkdir $tarball_tmp/tests/flex_read_fortran
    125 #cp tests/flex_read_fortran/test_read_default.sh  $tarball_tmp/tests/flex_read_fortran
    126 
    127 ###############################################################
    128 echo -----------------examples-------------------
    129 
    130 #echo ') ./tests/examples/'
    131 mkdir $tarball_tmp/tests/examples
    132 echo ') scripts'
    133 cp -r ./tests/examples/*.sh $tarball_tmp/tests/examples/
    134 echo ') makefile'
    135 cp -r ./tests/examples/Makefile $tarball_tmp/tests/examples/
    136 
    137 # echo USAGE: ~/repos/flexpart/tests/examples'$' make run
     62cp -r tests/NILU/test_1 $tarball_tmp/tests/
     63cp -r tests/flex_gen_cases $tarball_tmp/tests/
    13864
    13965
    140 ###############################################################
    141 echo -----------------postprocess examples-------------------
    142 echo --read examples-------------------
     66#return
    14367
    144 #echo '13 c) ./tests/read_examples/'
    145 mkdir $tarball_tmp/tests/read_examples
    146 cp tests/read_examples/read_grids.sh $tarball_tmp/tests/read_examples/
    147 cp tests/read_examples/read_headers.sh $tarball_tmp/tests/read_examples/
    148 
    149 # echo USAGE ~/repos/flexpart/tests/read_examples'$'./read_grids.sh
    150 
    151 ###############################################################
    152 echo --compare examples-------------------
    153 #echo tests/compare_examples.sh
    154 
    155 #mkdir $tarball_tmp/tests/compare_examples
    156 #cp tests/compare_examples/compare_grids.sh $tarball_tmp/tests/compare_examples
    157 cp tests/compare_grids.sh $tarball_tmp/tests/
    158 # list of examples with units
    159 cp tests/declare_examples $tarball_tmp/tests/
    160 
    161 
    162 
    163 # ~/repos/flexpart/tests$./compare_grids.sh
    164 
    165 #echo mkdir $tarball_tmp/tests/examples2/
    166 #echo cp tests/examples2/setup.sh $tarball_tmp/tests/examples2/
    167 echo --repeat examples-------------------
    168 #echo FIXME
    169 
    170 ###############################################################
    171 echo -----------------ctbto-------------------
    172 mkdir $tarball_tmp/tests/ctbto
    173 
    174 # cp -r tests/NILU/test_1 $tarball_tmp/tests/
    175 # cp -r tests/default_cases $tarball_tmp/tests/
    176 
    177 
    178 exit
    179 #return
    180 ###############################################################
    181 
    182 
    183 
     68#tar -cvf flexpart$version.tar $tarball_tmp/*
     69echo now can run:  "tar -cvf $tarball_tmp.tar $tarball_tmp/*"
     70echo preliminary: scp flexpart_v10.3beta.tar njord:public_html/FLEXPART
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG