fix bug and clean up jacobi examples
[charm.git] / examples / charm++ / jacobi2d-1d-decomposition / Makefile
similarity index 81%
rename from examples/charm++/jacobi1d/Makefile
rename to examples/charm++/jacobi2d-1d-decomposition/Makefile
index a51c5dd822a12fbd48fe4a505f7ffe7c33d5468a..c4b54e5ead912d1969ea0e09239bc157b6723f47 100644 (file)
@@ -1,5 +1,4 @@
-OPTS   = -g
-CHARMC = ../../../bin/charmc $(OPTS)
+CHARMC=../../../bin/charmc $(OPTS)
 
 OBJS = jacobi1d.o
 
@@ -11,11 +10,15 @@ jacobi1d: $(OBJS)
 proj: $(OBJS)
        $(CHARMC) -language charm++ -tracemode projections -o jacobi1d.prj $(OBJS)
 
+jacobi1d.o: jacobi1d.C jacobi1d.decl.h
+       $(CHARMC) -c jacobi1d.C
+
 jacobi1d.decl.h: jacobi1d.ci
        $(CHARMC)  jacobi1d.ci
 
 clean:
        rm -f *.decl.h *.def.h conv-host *.o jacobi1d jacobi1d.prj charmrun *~ *log *projrc *sts
 
-jacobi1d.o: jacobi1d.C jacobi1d.decl.h
-       $(CHARMC) -c jacobi1d.C
+test: all
+       ./charmrun +p4 ./jacobi1d 32 32 4 $(TESTOPTS)
+