Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'figs/condensate.fig/Makefile')
-rw-r--r--figs/condensate.fig/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/figs/condensate.fig/Makefile b/figs/condensate.fig/Makefile
new file mode 100644
index 0000000..9983ef7
--- /dev/null
+++ b/figs/condensate.fig/Makefile
@@ -0,0 +1,35 @@
+PROJECT=$(basename $(wildcard *.gnuplot))
+
+SIMPLESOLV=simplesolv~/Work/Research/2018+bose_gas/cmp/simplesolv/source/src
+
+all: $(addsuffix .pdf, $(PROJECT))
+
+define gnuplot2pdf
+ gnuplot $(1).gnuplot > $(1).tikz.tex
+ pdflatex -jobname $(1) -file-line-error $(1).tikz.tex
+endef
+
+define bigeq_run
+ julia -p 16 $(SIMPLESOLV)/main.jl -p "eq=bigeq;N=12;P=8;J=10;maxiter=100;v_a=8;minlrho=-6;nlrho=100;maxlrho=2" -M anyeq condensate_fraction_rho > condensate.dat
+endef
+
+condensate.dat:
+ $(call bigeq_run)
+
+DATS=condensate.dat
+
+condensate.pdf: $(DATS)
+ $(call gnuplot2pdf,$(basename $@))
+
+
+clean-aux:
+ rm -f $(addsuffix .tikz.tex, $(PROJECT))
+ rm -f *.aux *.log
+
+clean-dat:
+ rm -f $(DATS)
+
+clean-pdf:
+ rm -f $(addsuffix .pdf, $(PROJECT))
+
+clean: clean-aux clean-pdf