From d254a3e3f495e9cd3110ae48020786466d850d57 Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Tue, 14 Jun 2022 16:32:34 +0200 Subject: Initial commit --- figs/hierarchical_sd.fig/gendat | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 figs/hierarchical_sd.fig/gendat (limited to 'figs/hierarchical_sd.fig/gendat') diff --git a/figs/hierarchical_sd.fig/gendat b/figs/hierarchical_sd.fig/gendat new file mode 100755 index 0000000..08bbdd9 --- /dev/null +++ b/figs/hierarchical_sd.fig/gendat @@ -0,0 +1,30 @@ +#!/bin/bash + +# location of numkondo config +config=$(dirname $0)/sd-numkondo.mk + +# range and number of points in each direction +minx=-1 +maxx=0.5 +nx=20 + +miny=-0.4 +maxy=0.4 +ny=20 + +# compute each point +for i in $(seq $nx); do + # alpha_0 + alpha0=$(python -c "print($minx+($maxx-($minx))/($nx-1)*($i-1))") + for j in $(seq $ny); do + # alpha_1 + alpha1=$(python -c "print($miny+($maxy-($miny))/($ny-1)*($j-1))") + + # print alphas + echo -n "$alpha0 $alpha1 " + + # compute step and select the relevant lines + dat=$(numkondo -N 1 -F -I "0:$alpha0,1:$alpha1" "$config" | sed -r '/^[^01]/d;s/^[0-9]*://;s/,//' | tr '\n' ' ') + echo "$dat" + done +done -- cgit v1.2.3-70-g09d2