[cig-commits] [commit] master: Fix for multiple events. modified: util/obsrelax.sh (196ac0b)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Thu Dec 11 06:06:17 PST 2014
Repository : https://github.com/geodynamics/relax
On branch : master
Link : https://github.com/geodynamics/relax/compare/42d11065ddd418b9f472f8daa6781a785c299ce3...196ac0b9d49f79f91757c5f5d312afe75c3f17e7
>---------------------------------------------------------------
commit 196ac0b9d49f79f91757c5f5d312afe75c3f17e7
Author: sagar masuti <sagar.masuti at gmail.com>
Date: Thu Dec 11 22:04:28 2014 +0800
Fix for multiple events.
modified: util/obsrelax.sh
>---------------------------------------------------------------
196ac0b9d49f79f91757c5f5d312afe75c3f17e7
util/obsrelax.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/util/obsrelax.sh b/util/obsrelax.sh
index 265790e..8deda0a 100755
--- a/util/obsrelax.sh
+++ b/util/obsrelax.sh
@@ -31,7 +31,7 @@ stripoffset(){
}{ \
for (t in time){ \
if (time[t]<=$1){ \
- print NR; \
+ printf "%d ",NR; \
delete time[t]; \
}; \
}; \
@@ -50,7 +50,7 @@ stripoffset(){
fi
grep -v "#" $IFILE |
- awk -v e="$EVENTS" -v value="$time" \
+ awk -v e="$EVENTS" \
'BEGIN{ \
print "# t u1 u2 u3 s11 s12 s13 s22 s23 s33"; \
split(e,events," "); \
More information about the CIG-COMMITS
mailing list