]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 15 Apr 2004 23:24:02 +0000 (23:24 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 15 Apr 2004 23:24:02 +0000 (23:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@9025 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-15/step-15.cc

index d43e5171578a6e2791ff5186d213bd4956cb14df..02248f366b1c73edbf008c849881d4f2bc2c9fb1 100644 (file)
@@ -252,6 +252,15 @@ MinimizationProblem<dim>::MinimizationProblem (const unsigned int run_number)
                                  // then only seek updates to this function
                                  // with zero boundary values, so that the
                                  // boundary values are always correct.
+                                 //
+                                 // Note how we have specialized this function
+                                 // to 1d only. We do this since the second
+                                 // part of the function, where we deal with
+                                 // boundary values, is only correct if we are
+                                 // in 1d. Not generating a general template
+                                 // for this function prevents the compiler
+                                 // from erroneously compiling this function
+                                 // for other space dimensions, then.
 template <>
 void MinimizationProblem<1>::initialize_solution () 
 {

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.