summaryrefslogtreecommitdiff
path: root/xmds2/realistic_Rb_and_fields
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2012-11-28 18:45:28 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2012-11-28 18:45:28 -0500
commitd74f75c1a634ac93a4666ef96d120858a39fbee6 (patch)
tree8cd58bd9686ec135be97579c12c564025bd844dc /xmds2/realistic_Rb_and_fields
parent205e2ca65058d77825ba787cbf64b2ee8a3925f9 (diff)
downloadNresonances-d74f75c1a634ac93a4666ef96d120858a39fbee6.tar.gz
Nresonances-d74f75c1a634ac93a4666ef96d120858a39fbee6.zip
use headers files for test
Diffstat (limited to 'xmds2/realistic_Rb_and_fields')
-rw-r--r--xmds2/realistic_Rb_and_fields/Makefile67
1 files changed, 67 insertions, 0 deletions
diff --git a/xmds2/realistic_Rb_and_fields/Makefile b/xmds2/realistic_Rb_and_fields/Makefile
new file mode 100644
index 0000000..d485891
--- /dev/null
+++ b/xmds2/realistic_Rb_and_fields/Makefile
@@ -0,0 +1,67 @@
+### -*- make -*-
+### This file is part of the Debian xmds package
+### Copyright (C) 2006 Rafael Laboissiere
+### This file is relased under the GNU General Public License
+### NO WARRANTIES!
+
+### This makefile can be used to build and run the XMDS examples
+
+XMDS_FILES = $(shell ls *.xmds)
+RUN_FILES = $(patsubst %.xmds,%.run,$(XMDS_FILES))
+CC_FILES = $(patsubst %.xmds,%.cc,$(XMDS_FILES))
+XSIL_FILES = $(patsubst %.xmds,%.xsil,$(XMDS_FILES))
+M_FILES = $(patsubst %.xmds,%.m,$(XMDS_FILES))
+
+XMDS_INCLUDES = RbAtomConstants.h RbInits.h
+
+XMDS = xmds2
+XSIL2GRAPHICS = xsil2graphics
+
+all: $(RUN_FILES)
+
+%.run: %.xmds $(XMDS_INCLUDES)
+ $(XMDS) $<
+ mv $(patsubst %.xmds,%,$<) $@
+
+%.xsil: %.run
+ ./$< --E1o=0 --E3o=0
+
+%.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
+ rm -f $(png_targets)
+ rm -f $(eps_targets)
+
+eps_targets = $(wildcard *.eps)
+pdf_targets = $(eps_targets:%.eps=%.pdf)
+png_targets = $(pdf_targets:%.pdf=%.png)
+
+png: pdf $(png_targets)
+
+$(png_targets): %.png : %.pdf
+ convert -density 300 $< $@
+
+pdf: $(pdf_targets)
+
+test:
+ cp $(XMDS_FILES) tests/testsuite/
+ mkdir -p tests/testsuite_results
+ cp $(XMDS_INCLUDES) tests/testsuite_results/
+ cd tests; ./run_tests.py
+
+test_from_scratch:
+ rm -r tests/testsuite_results
+
+
+$(pdf_targets): %.pdf : %.eps
+ cat $< | ps2eps -B > __tt.eps
+ epspdf __tt.eps $@
+ rm -f __tt.eps
+ #ps2eps -B $< | epspdf $< $@
+.PRECIOUS: %.run %.xsil %.m
+.PHONY: all clean