Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'figs/energy.fig/Makefile')
-rw-r--r--figs/energy.fig/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/figs/energy.fig/Makefile b/figs/energy.fig/Makefile
new file mode 100644
index 0000000..139aecd
--- /dev/null
+++ b/figs/energy.fig/Makefile
@@ -0,0 +1,37 @@
+PROJECTNAME=energy
+
+SIMPLESOLV=~/Work/Research/2018+bose_gas/cmp/simplesolv/source/src
+
+DATS=simpleq.dat medeq.dat bigeq.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, $@)
+
+simpleq.dat:
+ julia $(SIMPLESOLV)/main.jl -p "eq=simpleq;tolerance=1e-11;order=100;maxiter=100;v_a=1;minlrho=-6;nlrho=100;maxlrho=2" -M easyeq -U exp energy_rho > $@
+medeq.dat:
+ julia $(SIMPLESOLV)/main.jl -p "eq=medeq;tolerance=1e-11;order=100;maxiter=100;v_a=1;minlrho=-6;nlrho=100;maxlrho=2" -M easyeq -U exp energy_rho > $@
+bigeq.dat:
+ julia -p 8 $(SIMPLESOLV)/main.jl -p "eq=bigeq;N=12;P=8;J=10;tolerance=1e-11;maxiter=21;v_a=1;minlrho=-6;nlrho=100;maxlrho=2" -M anyeq -U exp energy_rho > $@
+
+
+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