From 53446c52991b057d64a436ddfdbb02361b07d230 Mon Sep 17 00:00:00 2001 From: danshapero Date: Wed, 16 Sep 2015 23:29:52 -0700 Subject: [PATCH] Indentation fix in gradient_interpolate --- source/base/function_lib.cc | 30 +++++++++++++++--------------- tests/base/functions_10.cc | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) 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 -- 2.39.5