Commit 7113e793 authored by Ignacio Pisso's avatar Ignacio Pisso
Browse files

add define_OH.sh from 2018-07-14

parent 55c1d309
#!/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
if [ ! -d output ]; then
# Control will enter here if $DIRECTORY exists.
mkdir output
fi
cp $pathnames_local pathnames
#F different species
#F1:
suffix=_spec_CH4
options_new=options$suffix
if [ -d "$options_new" ]; then
echo 'rm -r $options_new'
rm -r $options_new
fi
cp -r options $options_new
sed -i "/SPECNUM_REL=/c\ SPECNUM_REL= 26," $options_new/RELEASES
output_new=output$suffix
mkdir $output_new
pathnames_new=pathnames$suffix
cp pathnames $pathnames_new
sed -i "s/\boptions\b/$options_new/g" $pathnames_new
sed -i "s/\boutput\b/$output_new/g" $pathnames_new
suffix=_spec_C2H6
options_new=options$suffix
cp -r options $options_new
sed -i "/SPECNUM_REL=/c\ SPECNUM_REL= 27," $options_new/RELEASES
output_new=output$suffix
mkdir $output_new
pathnames_new=pathnames$suffix
cp pathnames $pathnames_new
sed -i "s/\boptions\b/$options_new/g" $pathnames_new
sed -i "s/\boutput\b/$output_new/g" $pathnames_new
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