Ian Jauslin
summaryrefslogtreecommitdiff
blob: 964a8c59d62b2acfeb31881b48223c6121371d59 (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
PROJECTNAME=energy16

SIMPLEQ=~/Work/Research/2018+bose_gas/cmp/simpleq

DATS=simpleq16.dat medeq16.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, $@)

simpleq16.dat:
	julia $(SIMPLEQ)/main.jl -p "tolerance=1e-11;order=100;maxiter=100;v_a=16" -M simpleq energy_rho > $@
medeq16.dat:
	julia -p 8 $(SIMPLEQ)/main.jl -p "aK=1;aL1=1;aL2=1;aL3=0;bK=1;bL1=1;bL2=1;gK=1;gL2=1;gL3=0;N=12;P=8;v_a=16" -M medeq 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