From 5bb224a934dab8bc6b8f7d2c216edf7678fceed9 Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 29 Jan 2013 04:35:29 +0000 Subject: [PATCH] Add a link. git-svn-id: https://svn.dealii.org/trunk@28190 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-4/doc/intro.dox | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/deal.II/examples/step-4/doc/intro.dox b/deal.II/examples/step-4/doc/intro.dox index 8aa9428d96..83df40d5c2 100644 --- a/deal.II/examples/step-4/doc/intro.dox +++ b/deal.II/examples/step-4/doc/intro.dox @@ -7,7 +7,7 @@ deal.II has a unique feature which we call previous examples that many classes had a number in angle brackets suffixed to them. This is to indicate that for example the triangulation in two and three space dimensions are different, but -related data %types. We could as well have called them +related data %types. We could as well have called them Triangulation2d and Triangulation3d instead of Triangulation@<2@> and Triangulation@<3@> to name the two classes, but this @@ -63,7 +63,7 @@ example, like this, make_grid (triangulation); @endcode then the compiler will deduce that the function make_grid for -dim==2 was +dim==2 was requested and will compile the template above into a function with dim replaced by 2 everywhere, i.e. it will compile the function as if it were defined as @@ -112,7 +112,7 @@ amount of memory for the member variable; note that the size of a The deal.II library is build around this concept of dimension-independent programming, and therefore allows you to program in -a way that will not need to +a way that will not need to distinguish between the space dimensions. It should be noted that in only a very few places is it necessary to actually compare the dimension using ifs or switches. However, since the compiler @@ -131,3 +131,10 @@ dimensions at the same time. Other extensions are the use of a non-constant right hand side function and of non-zero boundary values. +@note When using templates, C++ imposes all sorts of syntax constraints that +make it sometimes a bit difficult to understand why exactly something has to +be written this way. A typical example is the need to use the keyword +typename in so many places. If you are not entirely familiar with +this already, then several of these difficulties are explained in the deal.II +Frequently Asked Questions (FAQ) linked to from the deal.II homepage. -- 2.39.5