Last change
on this file since 222 was
164,
checked in by jbrlod, 9 years ago
|
add nemed exp
|
-
Property svn:executable set to
*
|
File size:
588 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | scriptfile='script_prepare_exp_twin.m' |
---|
3 | src_dir='../src/' |
---|
4 | |
---|
5 | nlon=`awk '$1=="nlon" && $2=="="{print $3}' $scriptfile` |
---|
6 | nlat=`awk '$1=="nlat" && $2=="="{print $3}' $scriptfile` |
---|
7 | |
---|
8 | #echo $nlon |
---|
9 | #echo $nlat |
---|
10 | |
---|
11 | #sed -r "s/^(\bdefval\b[ ]+\bnlon\b[ ]+)([0-9]+)/\1 $nlon/g" < $descr_file |
---|
12 | #sed -r "s/^(\bdefval\b[ ]+\bnlat\b[ ]+)([0-9]+)/\1 $nlat/g" < $descr_file |
---|
13 | |
---|
14 | echo "defval nlon $nlon" > ${src_dir}grid_def.d |
---|
15 | echo "defval nlat $nlat" >> ${src_dir}grid_def.d |
---|
16 | |
---|
17 | grep -E "^[ ]*defval[ ]+OFIL" ref_fil.txt > ${src_dir}fil_def.d |
---|
18 | grep -E "^[ ]*YREAL[ ]+dtfil" ref_fil.txt > ${src_dir}fil_def.h |
---|
Note: See
TracBrowser
for help on using the repository browser.