Ian Jauslin
summaryrefslogtreecommitdiff
blob: d94c1450d2d9ed08edb2dae261cec9504f72f8b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
PROJECT=$(basename $(wildcard *.gnuplot))

SIMPLESOLV=simplesolv

all: $(addsuffix .pdf, $(PROJECT))

define gnuplot2pdf
	gnuplot $(1).gnuplot > $(1).tikz.tex
	pdflatex -jobname $(1) -file-line-error $(1).tikz.tex
endef

define medeq_run
	julia $(SIMPLESOLV)/main.jl -p "eq=medeq;order=200;maxiter=100;v_a=8;rho=$(1)e-3;minlrho_init=-6;nlrho_init=100;window_L=100;kmin=0;kmax=$(2);nk=100" -M easyeq momentum_distribution > medeq_$(1).dat
endef

medeq_0.3.dat:
	$(call medeq_run,0.3,1.34)
medeq_1.1.dat:
	$(call medeq_run,1.1,2.07)
medeq_1.9.dat:
	$(call medeq_run,1.9,2.48)
medeq_2.7.dat:
	$(call medeq_run,2.7,2.79)
medeq_3.5.dat:
	$(call medeq_run,3.5,3.04)
medeq_4.3.dat:
	$(call medeq_run,4.3,3.49)

DATS=medeq_0.3.dat medeq_1.1.dat medeq_1.9.dat medeq_2.7.dat medeq_3.5.dat medeq_4.3.dat

Nk.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