source: altifloat/exp_nemed/forward.sh @ 222

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
2scriptfile='script_prepare_exp_twin.m'
3src_dir='../src/'
4
5nlon=`awk '$1=="nlon" && $2=="="{print $3}' $scriptfile`
6nlat=`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
14echo "defval nlon $nlon" > ${src_dir}grid_def.d
15echo "defval nlat $nlat" >> ${src_dir}grid_def.d
16
17grep -E "^[ ]*defval[ ]+OFIL" ref_fil.txt > ${src_dir}fil_def.d
18grep -E "^[ ]*YREAL[ ]+dtfil" ref_fil.txt > ${src_dir}fil_def.h
Note: See TracBrowser for help on using the repository browser.