summaryrefslogtreecommitdiff
path: root/xmds2/check_perturbative_approach/Makefile
blob: 05bd065cccf1cbb09b1e8b8516c207b09ac6516c (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
###  -*- make -*-
### This makefile can be used to build and run the XMDS examples


XSIL_FILES = Nlevels_no_dopler_with_z_4wm_with_perturbations.xsil Nlevels_no_dopler_with_z_4wm.xsil
M_FILES = $(patsubst %.xsil,%.m,$(XSIL_FILES))

XSIL2GRAPHICS = xsil2graphics

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

all: $(XSIL_FILES) Nlevels_no_dopler_with_z_4wm.xsil $(M_FILES) plot

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

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

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

plot: $(M_FILES)
	octave pp.m

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

real_clean: clean
	rm -f *.eps

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