From: bangerth Date: Mon, 27 Aug 2007 20:15:23 +0000 (+0000) Subject: Add X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=063c52bdb2e6f2a3cd9d6dbbd0a8df718decc5b5;p=dealii-svn.git Add git-svn-id: https://svn.dealii.org/trunk@15075 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-29/Makefile b/deal.II/examples/step-29/Makefile new file mode 100644 index 0000000000..ad64734a77 --- /dev/null +++ b/deal.II/examples/step-29/Makefile @@ -0,0 +1,154 @@ +# $Id$ + + +# For the small projects Makefile, you basically need to fill in only +# four fields. +# +# The first is the name of the application. It is assumed that the +# application name is the same as the base file name of the single C++ +# file from which the application is generated. +target = $(basename $(shell echo step-*.cc)) + +# The second field determines whether you want to run your program in +# debug or optimized mode. The latter is significantly faster, but no +# run-time checking of parameters and internal states is performed, so +# you should set this value to `on' while you develop your program, +# and to `off' when running production computations. +debug-mode = on + + +# As third field, we need to give the path to the top-level deal.II +# directory. You need to adjust this to your needs. Since this path is +# probably the most often needed one in the Makefile internals, it is +# designated by a single-character variable, since that can be +# reference using $D only, i.e. without the parentheses that are +# required for most other parameters, as e.g. in $(target). +D = ../../ + + +# The last field specifies the names of data and other files that +# shall be deleted when calling `make clean'. Object and backup files, +# executables and the like are removed anyway. Here, we give a list of +# files in the various output formats that deal.II supports. +clean-up-files = *gmv *gnuplot *gpl *eps *pov + + + + +# +# +# Usually, you will not need to change something beyond this point. +# +# +# The next statement tell the `make' program where to find the +# deal.II top level directory and to include the file with the global +# settings +include $D/common/Make.global_options + + +################################################################ +# Since the whole project consists of only one file, we need not +# consider difficult dependencies. We only have to declare the +# libraries which we want to link to the object file, and there need +# to be two sets of libraries: one for the debug mode version of the +# application and one for the optimized mode. Here we have selected +# the versions for 2d. Note that the order in which the libraries are +# given here is important and that your applications won't link +# properly if they are given in another order. +# +# You may need to augment the lists of libraries when compiling your +# program for other dimensions, or when using third party libraries +libs.g = $(lib-deal2-2d.g) \ + $(lib-lac.g) \ + $(lib-base.g) +libs.o = $(lib-deal2-2d.o) \ + $(lib-lac.o) \ + $(lib-base.o) + + +# We now use the variable defined above which switch between debug and +# optimized mode to select the set of libraries to link with. Included +# in the list of libraries is the name of the object file which we +# will produce from the single C++ file. Note that by default we use +# the extension .g.o for object files compiled in debug mode and .o for +# object files in optimized mode (or whatever the local default on your +# system is instead of .o). +ifeq ($(debug-mode),on) + libraries = $(target).g.$(OBJEXT) $(libs.g) +else + libraries = $(target).$(OBJEXT) $(libs.o) +endif + + +# Now comes the first production rule: how to link the single object +# file produced from the single C++ file into the executable. Since +# this is the first rule in the Makefile, it is the one `make' selects +# if you call it without arguments. +$(target) : $(libraries) + @echo ============================ Linking $@ + @$(CXX) -o $@$(EXEEXT) $^ $(LIBS) $(LDFLAGS) + + +# To make running the application somewhat independent of the actual +# program name, we usually declare a rule `run' which simply runs the +# program. You can then run it by typing `make run'. This is also +# useful if you want to call the executable with arguments which do +# not change frequently. You may then want to add them to the +# following rule: +run: $(target) + @echo ============================ Running $< + @./$(target)$(EXEEXT) + + +# As a last rule to the `make' program, we define what to do when +# cleaning up a directory. This usually involves deleting object files +# and other automatically created files such as the executable itself, +# backup files, and data files. Since the latter are not usually quite +# diverse, you needed to declare them at the top of this file. +clean: + -rm -f *.$(OBJEXT) *~ Makefile.dep $(target)$(EXEEXT) $(clean-up-files) + + +# Since we have not yet stated how to make an object file from a C++ +# file, we should do so now. Since the many flags passed to the +# compiler are usually not of much interest, we suppress the actual +# command line using the `at' sign in the first column of the rules +# and write the string indicating what we do instead. +./%.g.$(OBJEXT) : + @echo ==============debug========= $( $@ \ + || (rm -f $@ ; false) + @if test -s $@ ; then : else rm $@ ; fi + + +# To make the dependencies known to `make', we finally have to include +# them: +include Makefile.dep + diff --git a/deal.II/examples/step-29/doc/intro.dox b/deal.II/examples/step-29/doc/intro.dox new file mode 100644 index 0000000000..1a5015de61 --- /dev/null +++ b/deal.II/examples/step-29/doc/intro.dox @@ -0,0 +1,6 @@ + +

Introduction

+ +This program was contributed by Moritz Allmaras at Texas A&M +University. Some of the work on this tutorial program has been funded +by NSF under grant DMS-0604778. diff --git a/deal.II/examples/step-29/doc/results.dox b/deal.II/examples/step-29/doc/results.dox new file mode 100644 index 0000000000..747bdbbb3d --- /dev/null +++ b/deal.II/examples/step-29/doc/results.dox @@ -0,0 +1,3 @@ + +

Results

+ diff --git a/deal.II/examples/step-29/doc/step-27.fe_degree-0.png b/deal.II/examples/step-29/doc/step-27.fe_degree-0.png new file mode 100644 index 0000000000..c650243c4b Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.fe_degree-0.png differ diff --git a/deal.II/examples/step-29/doc/step-27.fe_degree-1.png b/deal.II/examples/step-29/doc/step-27.fe_degree-1.png new file mode 100644 index 0000000000..6bbda6f1d7 Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.fe_degree-1.png differ diff --git a/deal.II/examples/step-29/doc/step-27.fe_degree-2.png b/deal.II/examples/step-29/doc/step-27.fe_degree-2.png new file mode 100644 index 0000000000..57eba26acc Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.fe_degree-2.png differ diff --git a/deal.II/examples/step-29/doc/step-27.fe_degree-3.png b/deal.II/examples/step-29/doc/step-27.fe_degree-3.png new file mode 100644 index 0000000000..bfa7a42f4f Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.fe_degree-3.png differ diff --git a/deal.II/examples/step-29/doc/step-27.fe_degree-4.png b/deal.II/examples/step-29/doc/step-27.fe_degree-4.png new file mode 100644 index 0000000000..fe086b0090 Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.fe_degree-4.png differ diff --git a/deal.II/examples/step-29/doc/step-27.fe_degree-5.png b/deal.II/examples/step-29/doc/step-27.fe_degree-5.png new file mode 100644 index 0000000000..e05df76b5d Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.fe_degree-5.png differ diff --git a/deal.II/examples/step-29/doc/step-27.mesh-0.png b/deal.II/examples/step-29/doc/step-27.mesh-0.png new file mode 100644 index 0000000000..1ea07b4393 Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.mesh-0.png differ diff --git a/deal.II/examples/step-29/doc/step-27.mesh-1.png b/deal.II/examples/step-29/doc/step-27.mesh-1.png new file mode 100644 index 0000000000..f7bda972aa Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.mesh-1.png differ diff --git a/deal.II/examples/step-29/doc/step-27.mesh-2.png b/deal.II/examples/step-29/doc/step-27.mesh-2.png new file mode 100644 index 0000000000..f645907104 Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.mesh-2.png differ diff --git a/deal.II/examples/step-29/doc/step-27.mesh-3.png b/deal.II/examples/step-29/doc/step-27.mesh-3.png new file mode 100644 index 0000000000..54eb54317b Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.mesh-3.png differ diff --git a/deal.II/examples/step-29/doc/step-27.mesh-4.png b/deal.II/examples/step-29/doc/step-27.mesh-4.png new file mode 100644 index 0000000000..7c2d0ccef7 Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.mesh-4.png differ diff --git a/deal.II/examples/step-29/doc/step-27.mesh-5.png b/deal.II/examples/step-29/doc/step-27.mesh-5.png new file mode 100644 index 0000000000..2733b8a6d8 Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.mesh-5.png differ diff --git a/deal.II/examples/step-29/doc/step-27.smoothness-0.png b/deal.II/examples/step-29/doc/step-27.smoothness-0.png new file mode 100644 index 0000000000..3dd11544fd Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.smoothness-0.png differ diff --git a/deal.II/examples/step-29/doc/step-27.smoothness-1.png b/deal.II/examples/step-29/doc/step-27.smoothness-1.png new file mode 100644 index 0000000000..71147786d9 Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.smoothness-1.png differ diff --git a/deal.II/examples/step-29/doc/step-27.smoothness-2.png b/deal.II/examples/step-29/doc/step-27.smoothness-2.png new file mode 100644 index 0000000000..621077d2c2 Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.smoothness-2.png differ diff --git a/deal.II/examples/step-29/doc/step-27.smoothness-3.png b/deal.II/examples/step-29/doc/step-27.smoothness-3.png new file mode 100644 index 0000000000..a55a03be28 Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.smoothness-3.png differ diff --git a/deal.II/examples/step-29/doc/step-27.smoothness-4.png b/deal.II/examples/step-29/doc/step-27.smoothness-4.png new file mode 100644 index 0000000000..4117b205c4 Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.smoothness-4.png differ diff --git a/deal.II/examples/step-29/doc/step-27.smoothness-5.png b/deal.II/examples/step-29/doc/step-27.smoothness-5.png new file mode 100644 index 0000000000..0f0ab78304 Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.smoothness-5.png differ diff --git a/deal.II/examples/step-29/doc/step-27.solution.png b/deal.II/examples/step-29/doc/step-27.solution.png new file mode 100644 index 0000000000..317aa881af Binary files /dev/null and b/deal.II/examples/step-29/doc/step-27.solution.png differ