From: danshapero Date: Thu, 17 Sep 2015 06:29:52 +0000 (-0700) Subject: Indentation fix in gradient_interpolate X-Git-Tag: v8.4.0-rc2~403^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1629%2Fhead;p=dealii.git Indentation fix in gradient_interpolate --- diff --git a/source/base/function_lib.cc b/source/base/function_lib.cc index ab271f81b6..b2763657c9 100644 --- a/source/base/function_lib.cc +++ b/source/base/function_lib.cc @@ -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; } diff --git a/tests/base/functions_10.cc b/tests/base/functions_10.cc index 7cb1ac0e47..48b78c9ca5 100644 --- a/tests/base/functions_10.cc +++ b/tests/base/functions_10.cc @@ -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