tfix generation of output during simulations - hansen-zoet-exp - comparison of lab and model results of sediment advection
git clone git://src.adamsgaard.dk/hansen-zoet-exp
Log
Files
Refs
Submodules
---
commit f46fbebaeb5cf4eab2caa5ff85154041f945e228
parent 34849286277708d5f92ba66797431c8c1444e27e
Author: Anders Damsgaard 
Date:   Tue,  7 Jun 2022 19:27:43 +0200

fix generation of output during simulations

Diffstat:
  M Makefile                            |      10 ++++++++++

1 file changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/Makefile b/Makefile
t@@ -68,6 +68,7 @@ strain_distribution_ampl1Pa_freq1.157e-5s.txt: ${BIN}
                         -I 1800 \
                         -q $${freq} \
                         -a $${ampl} \
+                        strain_distribution_ampl$${ampl}Pa_freq$${freq}s \
                         > strain_distribution_ampl$${ampl}Pa_freq$${freq}s.txt; \
         done; done'
 
t@@ -88,6 +89,15 @@ sediment_flux_v3.169e-6ms.txt: strain_distribution_N50kPa_v3.169e-6ms.txt Makefi
                         echo sediment_flux_v$${v}ms.txt; \
         done; done'
 
+sediment_flux_freq1.157e-5s.txt: strain_distribution_ampl1Pa_freq1.157e-5s.txt Makefile
+        sh -c '\
+        rm -f sediment_flux_freq*s.txt; \
+        for freq in ${fluid_freq_vals}; do \
+                for ampl in ${fluid_ampl_vals}; do \
+                        (printf "%g\t" $$ampl; ../cngf-pf/shear_flux < strain_distribution_ampl$${ampl}Pa_freq$${freq}s.txt) >> sediment_flux_freq$${freq}s.txt; \
+                        echo sediment_flux_freq$${freq}s.txt; \
+        done; done'
+
 fig-strain_distribution.pdf: fig-strain_distribution.gp strain_distribution_N50kPa_v3.169e-6ms.txt
         gnuplot fig-strain_distribution.gp > $@