Changeset 3ea93bb in flexpart.git for create_tarball.sh
- Timestamp:
- Aug 6, 2020, 12:03:39 AM (4 years ago)
- Branches:
- GFS_025, dev
- Children:
- aa939a9
- Parents:
- 95a8cb6 (diff), 3d7eebf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
create_tarball.sh
re4925fb r3d7eebf 1 1 #!/bin/bash 2 2 # Ignacio Pisso, May 2017 3 # Changes 2018-2019 3 4 4 5 echo CREATE A NEW FLEXPART DISTRIBUTION … … 43 44 44 45 # start packing 45 46 47 46 ## needs in addition to the git repo ANCILLARY git repos 48 47 # VERIFY THESE RESOURCES EXIST BEFORE PACKING DISTRIBUTION … … 51 50 #3 flex_read_fortran from ../flex_read_matlab/export_basic TODO: add functions to ../flex_read_matlab/export/ 52 51 # flex_read_matlab_src=../flex_read_matlab/export_basic 53 #4 tests/examples ../flex_tests_examples/examples3/* 54 #5 55 #6 52 #4 tests/examples ../flex_tests_examples/examples/* 56 53 57 54 … … 69 66 echo --------------------------------------------------------- 70 67 echo ')' copy pathnames 71 #cp pathnames_distribution $tarball_tmp/pathnames72 68 cp pathnames $tarball_tmp/pathnames 73 69 echo --------------------------------------------------------- … … 81 77 cp src/*.f90 $tarball_tmp/src 82 78 cp -r src/gributils $tarball_tmp/src 83 # echo '3)' copy makefile84 79 cp src/makefile $tarball_tmp/src 85 #cp src/makefile.gfs $tarball_tmp/src 86 echo --------------------------------------------------------- 80 echo --------------------------------------------------------- 81 82 cp LICENSE $tarball_tmp/LICENSE_GPLv3 83 cp src/flexpart_license.txt $tarball_tmp/src 87 84 88 85 echo … … 92 89 echo ')' copy options/ 93 90 echo --------------------------------------------------------- 94 # (for the distribution they work with the defult flex_ecmwf test winds)95 #cp -r options_flex_ecmwf_EA $tarball_tmp/options96 91 mkdir $tarball_tmp/options 97 92 user_input_files="AGECLASSES COMMAND IGBP_int1.dat OUTGRID OUTGRID_NEST RECEPTORS RELEASES surfdata.t surfdepo.t" … … 100 95 echo $i 101 96 cp -r options/$i $tarball_tmp/options 102 #echo copy $i to $tarball_tmp/options103 97 done 104 98 mkdir $tarball_tmp/options/SPECIES … … 123 117 echo --------------------------------------------------------- 124 118 echo ')' copy AVAILABLE 125 #cp AVAILABLE_flex_ecmwf_EA $tarball_tmp/AVAILABLE126 119 cp AVAILABLE $tarball_tmp/AVAILABLE 127 120 echo --------------------------------------------------------- … … 144 137 mkdir $tarball_tmp/preprocess 145 138 echo -----------------flex_extract------------------- 146 #echo '6)' mkdir $tarball_tmp/flex_extract [a separate repository]147 #mkdir $tarball_tmp/preprocess148 #mkdir $tarball_tmp/preprocess/flex_ecmwf149 139 mkdir $tarball_tmp/preprocess/flex_extract 150 #echo '7) add ECMWF retrieve routines (change EA wind files for latest source code)'151 #mkdir $tarball_tmp/preprocess/flex_extract152 #mkdir $tarball_tmp/preprocess/flex_extract/work153 #cp -r flex_ecmwf_src/* $tarball_tmp/preprocess/flex_ecmwf/154 #cp -r flex_ecmwf_src/* $tarball_tmp/preprocess/flex_extract/155 ## cp -r flex_extract/work/EA* $tarball_tmp/preprocess/flex_extract/work156 140 flex_extract=../flex_extract_v7.0.4/ 157 141 echo include flex_extract v7.0.4 b7c1c04a204c91e53759ef590504bf52dfaece64 … … 167 151 echo --------------------------------------------------------- 168 152 169 #echo '10)' cp example generating scripts [a separate repository]170 #echo moved below171 #mkdir $tarball_tmp/examples172 #cp -r examples/*.sh $tarball_tmp/examples/173 #cp -r examples/Makefile $tarball_tmp/examples/174 175 153 echo 176 154 … … 183 161 echo -----------------flex_read_fortran------------------- 184 162 flex_read_fortran_src=$postprocess/flex_read_fortran/ 185 #echo ')' directory for reading routines186 #echo '12)' add fortran reading routines [a separate repository]187 163 mkdir $tarball_tmp/$postprocess/flex_read_fortran 188 164 cp $postprocess/flex_read_fortran/*.f $tarball_tmp/$postprocess/flex_read_fortran … … 196 172 cp -r $flex_read_matlab_src/* $tarball_tmp/$postprocess/flex_read_matlab 197 173 echo flex_read_fortran from $flex_read_matlab_src # NOT copied 198 # add matlab reading routines199 #mkdir $tarball_tmp/postprocess/flex_read_matlab200 #cp postprocess/flex_read_matlab/*.m $tarball_tmp/postprocess/flex_read_matlab201 174 echo --------------------------------------------------------- 202 175 … … 205 178 echo --------------------------------------------------------- 206 179 echo ')' tests/ 207 ###############################################################208 180 #echo '13) tests' 209 181 mkdir $tarball_tmp/tests 210 #echo -----------------flex_read_fortran-------------------211 #echo 'b) ./tests/flex_read_fortran/'212 #echo fixme213 #mkdir $tarball_tmp/tests/flex_read_fortran214 #cp tests/flex_read_fortran/test_read_default.sh $tarball_tmp/tests/flex_read_fortran215 216 217 ###############################################################218 182 echo ----------------- examples ------------------- 219 183 220 #echo ') ./tests/examples/'221 184 mkdir $tarball_tmp/tests/examples 222 #echo ') scripts' 223 #cp -r ./tests/examples/*.sh $tarball_tmp/tests/examples/ 224 #echo ') makefile' 225 #cp -r ./tests/examples/Makefile $tarball_tmp/tests/examples/ 226 # echo USAGE: ~/repos/flexpart/tests/examples'$' make run 227 cp -r ../flex_tests_examples/examples3/* $tarball_tmp/tests/examples/ 185 cp -r ../flex_tests_examples/examples/* $tarball_tmp/tests/examples/ 228 186 229 187 echo ----------------- examples_reference ------------------- 230 188 cp -r ./tests/examples_reference $tarball_tmp/tests/ 231 189 232 233 234 ###############################################################235 # echo -----------------postprocess examples-------------------236 190 echo -----------------read examples------------------- 237 191 238 #echo '13 c) ./tests/read_examples/'239 192 mkdir $tarball_tmp/tests/read_examples 240 193 … … 249 202 cp tests/read_examples/read_headers.sh $tarball_tmp/tests/read_examples/ 250 203 cp tests/read_examples/read_examples_output.txt $tarball_tmp/tests/ #read_examples/ 251 # echo USAGE ~/repos/flexpart/tests/read_examples'$'./read_grids.sh 252 253 ############################################################### 204 254 205 echo ------------compare examples------------------- 255 #echo tests/compare_examples.sh256 206 mkdir $tarball_tmp/tests/compare_examples 257 207 258 208 259 #mkdir $tarball_tmp/tests/compare_examples260 #cp tests/compare_examples/compare_grids.sh $tarball_tmp/tests/compare_examples261 #cp tests/compare_grids.sh $tarball_tmp/tests/262 209 cp tests/compare_examples/*.sh $tarball_tmp/tests/compare_examples 263 210 cp tests/compare_examples/compare_grids_output.txt $tarball_tmp/tests/ #compare_examples 264 # list of examples with units 265 #cp tests/declare_examples $tarball_tmp/tests/ 266 267 echo 268 269 # ~/repos/flexpart/tests$./compare_grids.sh 270 271 #echo mkdir $tarball_tmp/tests/examples2/ 272 #echo cp tests/examples2/setup.sh $tarball_tmp/tests/examples2/ 273 # echo --repeat examples------------------- 274 # echo FIXME 275 276 ############################################################### 277 #echo -----------------ctbto------------------- 278 # mkdir $tarball_tmp/tests/ctbto 279 280 # cp -r tests/NILU/test_1 $tarball_tmp/tests/ 281 # cp -r tests/default_cases $tarball_tmp/tests/ 211 212 echo 282 213 283 214 echo --------------------------------------------------------- 284 215 echo create tarball 285 #tar cvf $tarball $tarball_tmp286 #tar cf $tarball $tarball_tmp287 #cd288 216 289 217 cd $targetdir … … 292 220 pwd 293 221 294 295 222 echo tarball $tarball complete 296 223 echo exported untarred files in $tarball_tmp 297 224 225 echo verify: 298 226 echo cp -r preprocess/flex_extract/work $tarball_tmp/preprocess/flex_extract/ 299 227 echo cd $tarball_tmp/src … … 302 230 echo cd postprocess/flex_read_fortran 303 231 echo make test 304 echo max: 0.115784094 mean: 4.70877676E-05 305 #echo cd $tarball_tmp/tests/examples ';' make run 232 echo e.g.: max: 0.115784094 mean: 4.70877676E-05 306 233 echo cd ../../tests/examples ';' make run 307 #echo cd $tarball_tmp/tests/read_examples308 234 echo cd ../read_examples 309 235 echo ./read_examples.sh … … 315 241 echo e.g. tar --append --file=$tarball_tmp/ ../compare_grids_output.txt ../read_examples_output.txt 316 242 317 318 319 320 exit321 #return322 ###############################################################323 324 # obtain $FLEXHOME (and set)325 #1 cd $FLEXHOME/src326 327 #2 compile328 #329 #[laptop] source /Users/ignacio/repos/flexpart/src/make_in_laptop.sh330 # [njord] make331 # ->created executable (FLEXPART)332 333 #3 execute in src (absolute paths)334 #335 #[laptop] cp /Users/ignacio/repos/flexpart/src/pathnames .336 #[njord] FIXME337 #338 # mkdir output339 # ./FLEXPART340 # ->created output in output/341 342 #4 read output343 # cd $FLEXHOME/postprocess/flex_read_fortran/344 # make345 # -> printheader* printgrid* flex_read_compare2*346 #/postprocess/flex_read_fortran$./printheader ../../src/output/347 #/postprocess/flex_read_fortran$./printgrid ../../src/output/ conc348 # -> output in stdout (max: 11122924.0 sum: 90330784.0)349 350 #5 execute in $FLEXHOME351 # cd $FLEXHOME352 # get winds353 #[laptop] cp -r ~/repos/flex_winds/work/ ./preprocess/flex_extract/354 #[njord] curl https://folk.nilu.no/~ignacio/FLEXPART/EA120101.tar --output EA120101.tar ; tar -xvf EA120101.tar ; mv flex_extract/work preprocess/flex_extract/ ; rmdir flex_extract355 356 # src/FLEXPART357 # -> output in $FLEXHOME/output/358 359 #6 read output360 # postprocess/flex_read_fortran/printheader output/361 # postprocess/flex_read_fortran/printgrid output/ conc362 # -> output in stdout ( max: 11578738.0 sum: 104058720.)363 364 #7 gnererate examples365 # cd $FLEXHOME/tests/examples366 367 #make run368 369 #make examples370 #make batch371 #./run_batch_cl.sh372 373 #make (set_default_example.sh)374 #tests/examples$../../src/FLEXPART375 #output376 377 #8 read examples:378 #cd $FLEXHOME/tests/read_examples379 # ./read_headers.sh380 # ./read_grids.sh381 382 #9 compare examples with reference
Note: See TracChangeset
for help on using the changeset viewer.