]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix at least one of the two testcases in this file.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Feb 1999 13:11:16 +0000 (13:11 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Feb 1999 13:11:16 +0000 (13:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@848 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/second_derivatives.cc

index cfac394bba9cc4a97b265309aa720f5507e7b16a..10d024bc07b2e92b168a36cad5a17a66577de2ff 100644 (file)
@@ -65,10 +65,29 @@ int main () {
                    for (unsigned int point=0; point<4; ++point)
                      {
                                                         // on the unit cell,
-                                                        // the second derivative
-                                                        // of a linear element
-                                                        // should be zero
-                       if (derivs[point] != Tensor<2,2>())
+                       bool ok=true;
+
+                       if ((derivs[point][0][0] != 0) ||
+                           (derivs[point][1][1] != 0))
+                         ok = false;
+
+                       switch (vertex)
+                         {
+                           case 0:
+                           case 2:
+                                 if ((derivs[point][0][1] != 1) ||
+                                     (derivs[point][1][0] != 1))
+                                   ok = false;
+                                 break;
+                           case 1:
+                           case 3:
+                                 if ((derivs[point][0][1] != -1) ||
+                                     (derivs[point][1][0] != -1))
+                                   ok = false;
+                                 break;
+                         };  
+                       
+                       if (!ok)
                          {
                            testcase_succeeded = false;
                            cout << "WRONG! ";

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.