commit 7e22d8aeae7156686d3a6883ae788607cc6b7b0f
parent 674f70c7fbaf05c501843c8ecccf1069c537509a
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 15 Jul 2019 16:30:50 +0200
Remove time series before appending to it
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/fig4/Makefile b/fig4/Makefile
@@ -15,12 +15,14 @@ sim.output00000.txt: $(BIN)
timeseries.txt: sim.output00000.txt
/bin/sh -c '\
+ rm -f $@; \
for f in sim.output*.txt; do \
tail -n 1 "$$f" | cut -f2- >> $@; \
done'
max_strainrate_depth.txt: sim.output00000.txt
/bin/sh -c '\
+ rm -f $@; \
for f in sim.output*.txt; do \
awk " \
BEGIN{getline; depth=8.0; max=0.0} \
diff --git a/fig5/Makefile b/fig5/Makefile
@@ -15,12 +15,14 @@ sim.output00000.txt: $(BIN)
timeseries.txt: sim.output00000.txt
/bin/sh -c '\
+ rm -f $@; \
for f in sim.output*.txt; do \
tail -n 1 "$$f" | cut -f2- >> $@; \
done'
max_strainrate_depth.txt: sim.output00000.txt
/bin/sh -c '\
+ rm -f $@; \
for f in sim.output*.txt; do \
awk " \
BEGIN{getline; depth=8.0; max=0.0} \