diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2012-11-30 17:17:56 -0500 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2012-11-30 17:17:56 -0500 |
commit | 88913cb1a14eaf3454ba8c7fb27b75786f3e14ef (patch) | |
tree | 28799f0d7001c807f20558582629df8953660b70 /xmds2/realistic_Rb_and_fields/Makefile.pp | |
parent | 6c574f5f886e0614a415593e2e12494e21469c6c (diff) | |
parent | 30d082e4ea50244839fd5537483822e559db8a18 (diff) | |
download | Nresonances-88913cb1a14eaf3454ba8c7fb27b75786f3e14ef.tar.gz Nresonances-88913cb1a14eaf3454ba8c7fb27b75786f3e14ef.zip |
Merge branch 'circ_polarizations'
Diffstat (limited to 'xmds2/realistic_Rb_and_fields/Makefile.pp')
-rw-r--r-- | xmds2/realistic_Rb_and_fields/Makefile.pp | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/xmds2/realistic_Rb_and_fields/Makefile.pp b/xmds2/realistic_Rb_and_fields/Makefile.pp new file mode 100644 index 0000000..e24107e --- /dev/null +++ b/xmds2/realistic_Rb_and_fields/Makefile.pp @@ -0,0 +1,47 @@ +### -*- make -*- +### This makefile can be used to build and run the XMDS examples + + +GNUPLOT_FILES = $(wildcard *.gp) +XSIL_FILES = $(wildcard *.xsil) +RUN_FILES = $(patsubst %.xsil,%.run,$(XSIL_FILES)) +M_FILES = $(patsubst %.xsil,%.m,$(XSIL_FILES)) + +SCRIPTS_DIR = .. + +XSIL2GRAPHICS = xsil2graphics + +include $(PARAMS_FILE) + +all: $(XSIL_FILES) $(M_FILES) plot fig + +$(XSIL_FILES): ../$(RUN_FILES) $(PARAMS_FILE) + $< $(PARAMS) | grep "Time elapsed for simulation is:" > exact_analysis_execution_time.txt + +%.m: %.xsil + $(XSIL2GRAPHICS) $< + +fig: pp_I2.stamp + $(MAKE) -f $(SCRIPTS_DIR)/Makefile.fig $@ + + +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 pp_I2.stamp + $(MAKE) -f $(SCRIPTS_DIR)/Makefile.fig $@ + +real_clean: clean + rm -f $(M_FILES) $(XSIL_FILES) *.dat octave-core + $(MAKE) -f $(SCRIPTS_DIR)/Makefile.fig $@ + rm -f exact_analysis_execution_time.txt + +.PRECIOUS: %.run %.xsil %.m +.PHONY: all clean |