]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Indentation fix in gradient_interpolate 1629/head
authordanshapero <shapero.daniel@gmail.com>
Thu, 17 Sep 2015 06:29:52 +0000 (23:29 -0700)
committerdanshapero <shapero.daniel@gmail.com>
Thu, 17 Sep 2015 06:43:34 +0000 (23:43 -0700)
source/base/function_lib.cc
tests/base/functions_10.cc

index ab271f81b603d805b148f2ec00fcc4a6ad44dbfe..b2763657c9e254969ba17fedc45a7de5a2cfb99a 100644 (file)
@@ -2365,10 +2365,10 @@ namespace Functions
     {
       Tensor<1,2> grad;
       double
-        u00 = data_values[ix[0]][ix[1]],
-        u01 = data_values[ix[0]+1][ix[1]],
-        u10 = data_values[ix[0]][ix[1]+1],
-        u11 = data_values[ix[0]+1][ix[1]+1];
+      u00 = data_values[ix[0]][ix[1]],
+      u01 = data_values[ix[0]+1][ix[1]],
+      u10 = data_values[ix[0]][ix[1]+1],
+      u11 = data_values[ix[0]+1][ix[1]+1];
 
       grad[0] = ((1-p_unit[1])*(u01-u00) + p_unit[1]*(u11-u10))/dx[0];
       grad[1] = ((1-p_unit[0])*(u10-u00) + p_unit[0]*(u11-u01))/dx[1];
@@ -2383,14 +2383,14 @@ namespace Functions
     {
       Tensor<1,3> grad;
       double
-        u000 = data_values[ix[0]][ix[1]][ix[2]],
-        u001 = data_values[ix[0]+1][ix[1]][ix[2]],
-        u010 = data_values[ix[0]][ix[1]+1][ix[2]],
-        u100 = data_values[ix[0]][ix[1]][ix[2]+1],
-        u011 = data_values[ix[0]+1][ix[1]+1][ix[2]],
-        u101 = data_values[ix[0]+1][ix[1]][ix[2]+1],
-        u110 = data_values[ix[0]][ix[1]+1][ix[2]+1],
-        u111 = data_values[ix[0]+1][ix[1]+1][ix[2]+1];
+      u000 = data_values[ix[0]][ix[1]][ix[2]],
+      u001 = data_values[ix[0]+1][ix[1]][ix[2]],
+      u010 = data_values[ix[0]][ix[1]+1][ix[2]],
+      u100 = data_values[ix[0]][ix[1]][ix[2]+1],
+      u011 = data_values[ix[0]+1][ix[1]+1][ix[2]],
+      u101 = data_values[ix[0]+1][ix[1]][ix[2]+1],
+      u110 = data_values[ix[0]][ix[1]+1][ix[2]+1],
+      u111 = data_values[ix[0]+1][ix[1]+1][ix[2]+1];
 
       grad[0] = ((1-p_unit[2])
                  *
@@ -2399,7 +2399,7 @@ namespace Functions
                  p_unit[2]
                  *
                  ((1-p_unit[1])*(u101-u100) + p_unit[1]*(u111-u110))
-                 )/dx[0];
+                )/dx[0];
       grad[1] = ((1-p_unit[2])
                  *
                  ((1-p_unit[0])*(u010-u000) + p_unit[0]*(u011-u001))
@@ -2407,7 +2407,7 @@ namespace Functions
                  p_unit[2]
                  *
                  ((1-p_unit[0])*(u110-u100) + p_unit[0]*(u111-u101))
-                 )/dx[1];
+                )/dx[1];
       grad[2] = ((1-p_unit[1])
                  *
                  ((1-p_unit[0])*(u100-u000) + p_unit[0]*(u101-u001))
@@ -2415,7 +2415,7 @@ namespace Functions
                  p_unit[1]
                  *
                  ((1-p_unit[0])*(u110-u010) + p_unit[0]*(u111-u011))
-                 )/dx[2];
+                )/dx[2];
 
       return grad;
     }
index 7cb1ac0e472c528a024a41e3298a73d9955c2e6e..48b78c9ca5896772bf6264b9b06fa7022d564086 100644 (file)
@@ -96,7 +96,7 @@ void check ()
 
       AssertThrow ((exact_gradient - f.gradient(p)).norm() < 1e-12,
                    ExcInternalError());
-   }
+    }
 
   // now also verify that it computes values outside the box correctly, as
   // documented

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.