Commit 3a865dc4 authored by Ignacio Pisso's avatar Ignacio Pisso
Browse files

add _0 files, for creating and running only the default case

parent ece55028
options:
./define_default_run_0.sh
slfiles:
./loop_on_pathnames_laptop.sh
run:
./run_all_sl
clean: this_is_a_run
rm -r options*
cleanrun:
rm *.out rm *.err *.sl
#!/bin/bash
# Ignacio Pisso 2018-03-29
# generate FLEXPART variations on the default for parameter sweep hello world tests
#define input options
options_repo=~/repos/flexpart/options
#define winds
pathnames_local=~/repos/flexpart/pathnames
#copy default
cp -r $options_repo options
#sed -i '/IOUT=/c\ IOUT= 2,' options2/COMMAND
mkdir output
cp $pathnames_local pathnames
#sed -i "s/\boptions\b/options2/g" pathnames2
#sed -i "s/\boutput\b/output2/g" pathnames2
#!/bin/bash
#OUTPUT=${OUTPUTvar:-$OUTPUTdefault}
#target=$1 #/Users/ignacio/todo/doing/flexpart/flex_gen_input/2018-07-03
target_default='../flex_cases'
target_in=$1
target=${target_in:-$target_default}
echo target=$target
#[ -e $target ] && (echo WARNING: target=$target exists as file)
#echo post -e
#[ -d $target ] || mkdir $target
#echo post -d
if [ -d $target ]
then
echo WARNING: target=$target exists as dir, exit
exit
else
if [ -e $target ]
then
echo WARNING: target=$target exists as file, exit
exit
else
mkdir $target
echo $target created
fi
fi
listoffiles=(define_default_run_0.sh Makefile loop_on_pathnames_laptop.sh run_all_sl_laptop)
echo copy ${listoffiles[*]} to $target
cp ${listoffiles[*]} $target
#exit
#cp define_default_run_0.sh $target
cp Makefile_0 $target/Makefile
#cp loop_on_pathnames_laptop.sh $target
#cp run_all_sl_laptop $target
#echo "created by $(basename \"$0\") on $(date) from $(pwd)" > $target/README
echo "created by $(basename "$0") on $(date) from $(pwd)" > $target/README
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment