Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'figs/relative_energy.fig/Makefile')
-rw-r--r--figs/relative_energy.fig/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/figs/relative_energy.fig/Makefile b/figs/relative_energy.fig/Makefile
new file mode 100644
index 0000000..065a2d0
--- /dev/null
+++ b/figs/relative_energy.fig/Makefile
@@ -0,0 +1,43 @@
+PROJECTNAME=compare
+
+SIMPLEQ=~/Work/Research/2018+bose_gas/cmp/simpleq
+
+DATS=simpleq2.dat bigeq2.dat
+PDFS=$(addsuffix .pdf, $(PROJECTNAME))
+TEXS=$(addsuffix .tikz.tex, $(PROJECTNAME))
+
+all: $(PDFS)
+
+$(PDFS): $(DATS)
+ gnuplot $(patsubst %.pdf, %.gnuplot, $@) > $(patsubst %.pdf, %.tikz.tex, $@)
+ pdflatex -jobname $(basename $@) -file-line-error $(patsubst %.pdf, %.tikz.tex, $@)
+
+bigeq2.dat:
+ for rho in 0.005 0.01 0.02 0.1 1; do \
+ echo -n $$rho " " >> $@-tmp ;\
+ julia $(SIMPLEQ)/main.jl -p "eq=bigeq;N=8;P=9;J=10;maxiter=100;v_a=2;rho=$$rho;minlrho=-6;nlrho=50" -M medeq energy >> $@-tmp ;\
+ done
+ paste $@-tmp 2020-08-27+2.dat > $@
+ rm $@-tmp
+simpleq2.dat:
+ for lrho in -2.301029995 -2 -1.698970004 -1 0; do \
+ julia $(SIMPLEQ)/main.jl -p "tolerance=1e-11;order=100;maxiter=100;v_a=2;minlrho=$$lrho;nlrho=1" -M simpleq energy_rho >> $@-tmp ;\
+ done
+ paste $@-tmp 2020-08-27+2.dat > $@
+ rm $@-tmp
+
+install: $(PDFS)
+ cp $^ $(INSTALLDIR)/
+
+clean-aux:
+ rm -f $(addsuffix .tikz.tex, $(PROJECTNAME))
+ rm -f $(addsuffix .aux, $(PROJECTNAME))
+ rm -f $(addsuffix .log, $(PROJECTNAME))
+
+clean-dat:
+ rm -f $(DATS)
+
+clean-tex:
+ rm -f $(PDFS)
+
+clean: clean-aux clean-tex