]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
add a target run and adjust timestepping to Baerbel's changes
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 5 Oct 2010 17:10:40 +0000 (17:10 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 5 Oct 2010 17:10:40 +0000 (17:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@22252 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/doxygen/Makefile
deal.II/examples/doxygen/theta_timestepping.cc

index 5bd22b1a7ca00b49be1bcfbab12986f0ff6bea2f..22f33ecfd2a665b0e4db1f2087ea0d9968d0cef8 100644 (file)
 ###########################################################################
 include ../../common/Make.global_options
 
-all: product_matrix$(EXEEXT) block_matrix_array$(EXEEXT) \
-     compressed_block_sparsity_pattern$(EXEEXT) \
-     theta_timestepping$(EXEEXT)
+SHELL=/bin/bash
+
+tests = $(wildcard *.cc)
+exe =  $(tests:%.cc=%$(EXEEXT))
+ok = $(tests:%.cc=%.ok)
+
+all: $(exe)
+
+run: $(ok)
+       for prog in $(exe) ; do ./$$prog ; done
 
 ######################################################################
 # Compilation of source code
@@ -27,6 +34,12 @@ all: product_matrix$(EXEEXT) block_matrix_array$(EXEEXT) \
        @echo ==============optimized===== $(<F)
        @$(CXX) $(CXXFLAGS.o) -c $< -o $@
 
+######################################################################
+# Running the programs
+######################################################################
+%.ok: %$(EXEEXT)
+       ./$<
+
 ######################################################################
 # Specific targets
 ######################################################################
@@ -53,7 +66,7 @@ theta_timestepping$(EXEEXT): theta_timestepping.g.$(OBJEXT) $(lib-deal2-2d.g) $(
 
 
 clean:
-       -rm -f *~ *.$(OBJEXT) $(all)
+       -rm -f *~ *.$(OBJEXT) $(exe)
 
 
 .PHONY: all clean
index bf5b4dc067e97e4d925d34e15fa11b2ef7098bcd..db3846187096494fc5f8683e14b78a6ddaa42416 100644 (file)
@@ -114,7 +114,7 @@ Explicit::operator() (NamedData<Vector<double>*>& out, const NamedData<Vector<do
        m(i,i) += 1.;
     }
   this->notifications.clear();
-  unsigned int i = in.find("Previous time");
+  unsigned int i = in.find("Previous iterate");
   m.vmult(*out(0), *in(i));
 }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.