summaryrefslogtreecommitdiff
path: root/xmds2/Nlevels_with_doppler_with_z_4wm/Makefile.pp
blob: 0778230c975e02a168d649e15904159aab05fd73 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
###  -*- make -*-
### This makefile can be used to build and run the XMDS examples


XSIL_FILES = Nlevels_with_doppler_with_z_4wm.xsil
M_FILES = $(patsubst %.xsil,%.m,$(XSIL_FILES))
GNUPLOT_FILES = $(wildcard *.gp)

SCRIPTS_DIR = .

XSIL2GRAPHICS = xsil2graphics

# fast light
#PARAMS =  --delta1=0 --delta2=0 --delta3=0 --E1o=1.9e7 --E2o=3.1e5 --E3o=3.8e7 --E4o=1e1
#PARAMS =  --delta1=0 --delta2=0 --delta3=0 --E1o=0.1e7 --E2o=1e4 --E3o=.3e7 --E4o=0 --Lcell=1.5e-2 --Temperature=.0001
PARAMS =  \
	  --Ndens=1e15 \
	  --Lcell=10.0e-2 \
	  --Temperature=5 \
	  --Pwidth=0.4e-6 \
	  --delta1=0 --delta2=0 --delta3=0 \
	  --E1o=2e7 --E2o=1e2 --E3o=4e7 --E4o=1e0


include $(PARAMS_FILE)


# slow light EIT
#PARAMS =  --delta1=0 --delta2=0 --delta3=0 --E1o=1.9e7 --E2o=3.1e5 --E3o=0 --E4o=0

all: $(XSIL_FILES) Nlevels_with_doppler_with_z_4wm.xsil $(M_FILES) plot png

Nlevels_with_doppler_with_z_4wm.xsil: ../Nlevels_with_doppler_with_z_4wm.run
	$< $(PARAMS) | grep "Time elapsed for simulation is:" > exact_analysis_execution_time.txt

%.m: %.xsil
	$(XSIL2GRAPHICS) $<

pretty_plots: pp_I2.stamp $(GNUPLOT_FILES)
	gnuplot $(SCRIPTS_DIR)/plot_fields_propagation_I2.gp
	gnuplot $(SCRIPTS_DIR)/plot_fields_propagation_I4.gp

plot: pp_I2.stamp

pp_I2.stamp: $(XSIL_FILES) $(M_FILES)
	octave -q $(SCRIPTS_DIR)/pp_I2.m

clean:
	rm -f $(CC_FILES) $(RUN_FILES) $(M_FILES) $(XSIL_FILES) *.wisdom.fftw3 *.dat octave-core *.wisdom *.pdf
	rm -f $(pdf_targets)
	rm -f $(eps_targets)

real_clean: clean
	rm -f $(png_targets)

eps_targets  = $(wildcard *.eps)
pdf_targets  = $(eps_targets:%.eps=%.pdf)	
png_targets  = $(pdf_targets:%.pdf=%.png)

pdf: $(pdf_targets) 

$(pdf_targets): %.pdf : %.eps
	@cat $< | ps2eps -q -B > __tt.eps
	epspdf __tt.eps $@
	@rm -f __tt.eps

png: pdf $(png_targets) 

$(png_targets): %.png : %.pdf
	convert -density 300 $< $@

.PRECIOUS: %.run %.xsil %.m
.PHONY: all clean