flexpart-noresm
Last change
on this file since da6ad3f was
da6ad3f,
checked in by Ignacio Pisso <Ignacio.Pisso@…>, 8 years ago
|
test existence of options dir in test 0 before copy to avoid error message
|
-
Property mode set to
100755
|
File size:
829 bytes
|
Rev | Line | |
---|
[988b0bd] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | #input FP exec |
---|
| 4 | test_dir=$1 |
---|
| 5 | base_dir=$2 |
---|
| 6 | FP_exec=$3 |
---|
| 7 | options_default=../options |
---|
| 8 | |
---|
| 9 | #echo FP_exec=$FP_exec |
---|
| 10 | #echo $FLEXOUT_TMP |
---|
| 11 | |
---|
| 12 | #suffix=$(date "+%y-%m-%d_%H%M%S") |
---|
| 13 | #test_tmp=${FLEXOUT_TMP}${base_dir}${test_dir} |
---|
| 14 | test_tmp=${base_dir}${test_dir} |
---|
| 15 | #_${suffix} |
---|
| 16 | |
---|
| 17 | current_dir=$(pwd) |
---|
| 18 | echo test_tmp=$test_tmp |
---|
| 19 | mkdir $test_tmp |
---|
| 20 | |
---|
| 21 | #copy default optios |
---|
| 22 | cp -r $options_default $test_tmp/options |
---|
| 23 | #override default options |
---|
[da6ad3f] | 24 | if [ -d "$test_dir" && "$(ls -A ${test_dir}/options)" ]; then |
---|
[988b0bd] | 25 | cp -r ${test_dir}/options/* $test_tmp/options/ |
---|
| 26 | fi |
---|
| 27 | # copy paths form repo source exec tmp dir |
---|
| 28 | cp ${test_dir}/pathnames $test_tmp |
---|
| 29 | # make output dir locally |
---|
| 30 | mkdir ${test_tmp}/output |
---|
| 31 | ln -s $FP_exec ${test_tmp}/flexpartnoresm |
---|
| 32 | |
---|
| 33 | #cd $test_tmp |
---|
| 34 | #echo $(pwd) |
---|
| 35 | #echo $FP_exec |
---|
| 36 | #echo run $FP_exec '; stdout to out.log' |
---|
| 37 | #$FP_exec &> out.log # both out and err |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.