summaryrefslogtreecommitdiff
path: root/xmds2
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2011-11-13 15:24:34 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2011-11-13 15:24:34 -0500
commit31e727b267901d912560a8ae6f048c595c9441c4 (patch)
tree3058dfb2ef9f5d831190a48acdd80ad58b2254fb /xmds2
parent44a07bbc930657c67bcd94aa8cdeb9479c9d478b (diff)
downloadNresonances-31e727b267901d912560a8ae6f048c595c9441c4.tar.gz
Nresonances-31e727b267901d912560a8ae6f048c595c9441c4.zip
Added slow light makefile
Diffstat (limited to 'xmds2')
-rw-r--r--xmds2/Nlevels_no_dopler_with_z_4wm/fast_light/Makefile54
1 files changed, 54 insertions, 0 deletions
diff --git a/xmds2/Nlevels_no_dopler_with_z_4wm/fast_light/Makefile b/xmds2/Nlevels_no_dopler_with_z_4wm/fast_light/Makefile
new file mode 100644
index 0000000..76d3f5c
--- /dev/null
+++ b/xmds2/Nlevels_no_dopler_with_z_4wm/fast_light/Makefile
@@ -0,0 +1,54 @@
+### -*- make -*-
+### This makefile can be used to build and run the XMDS examples
+
+
+XSIL_FILES = Nlevels_no_dopler_with_z_4wm.xsil
+M_FILES = $(patsubst %.xsil,%.m,$(XSIL_FILES))
+GNUPLOT_FILES = $(wildcard *.gp)
+
+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 png
+
+Nlevels_no_dopler_with_z_4wm.xsil: ../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) $(GNUPLOT_FILES)
+ octave pp_I2.m
+ gnuplot plot_fields_propagation_I2.gp
+
+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 -B > __tt.eps
+ epspdf __tt.eps $@
+ rm -f __tt.eps
+ #ps2eps -B $< | epspdf $< $@
+
+png: pdf $(png_targets)
+
+$(png_targets): %.png : %.pdf
+ convert -density 300 $< $@
+
+.PRECIOUS: %.run %.xsil %.m
+.PHONY: all clean