From 6046fc7429807b8e156eb3b260321173cb3ac699 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 18 Jul 2000 14:25:58 +0000 Subject: [PATCH] Mostly reindentations. git-svn-id: https://svn.dealii.org/trunk@3179 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/function_lib.cc | 86 ++++++++++++++--------------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/deal.II/base/source/function_lib.cc b/deal.II/base/source/function_lib.cc index eef1c4d20e..478bd1caf1 100644 --- a/deal.II/base/source/function_lib.cc +++ b/deal.II/base/source/function_lib.cc @@ -60,7 +60,7 @@ SquareFunction::value_list (const vector > &points, template double SquareFunction::laplacian (const Point &, - const unsigned int) const + const unsigned int) const { return 2*dim; } @@ -161,7 +161,7 @@ PillowFunction::value_list (const vector > &points, template double PillowFunction::laplacian (const Point &p, - const unsigned int) const + const unsigned int) const { switch(dim) { @@ -171,8 +171,8 @@ PillowFunction::laplacian (const Point &p, return -2.*((1.-p(0)*p(0))+(1.-p(1)*p(1))); case 3: return -2.*((1.-p(0)*p(0))*(1.-p(1)*p(1)) - +(1.-p(1)*p(1))*(1.-p(2)*p(2)) - +(1.-p(2)*p(2))*(1.-p(0)*p(0))); + +(1.-p(1)*p(1))*(1.-p(2)*p(2)) + +(1.-p(2)*p(2))*(1.-p(0)*p(0))); default: Assert(false, ExcNotImplemented()); } @@ -321,7 +321,7 @@ CosineFunction::value_list (const vector > &points, template double CosineFunction::laplacian (const Point &p, - const unsigned int) const + const unsigned int) const { switch(dim) { @@ -429,7 +429,7 @@ CosineFunction::gradient_list (const vector > &points, template double ExpFunction::value (const Point &p, - const unsigned int) const + const unsigned int) const { switch(dim) { @@ -448,8 +448,8 @@ ExpFunction::value (const Point &p, template void ExpFunction::value_list (const vector > &points, - vector &values, - const unsigned int) const + vector &values, + const unsigned int) const { Assert (values.size() == points.size(), ExcDimensionMismatch(values.size(), points.size())); @@ -477,7 +477,7 @@ ExpFunction::value_list (const vector > &points, template double ExpFunction::laplacian (const Point &p, - const unsigned int) const + const unsigned int) const { switch(dim) { @@ -496,8 +496,8 @@ ExpFunction::laplacian (const Point &p, template void ExpFunction::laplacian_list (const vector > &points, - vector &values, - const unsigned int) const + vector &values, + const unsigned int) const { Assert (values.size() == points.size(), ExcDimensionMismatch(values.size(), points.size())); @@ -525,7 +525,7 @@ ExpFunction::laplacian_list (const vector > &points, template Tensor<1,dim> ExpFunction::gradient (const Point &p, - const unsigned int) const + const unsigned int) const { Tensor<1,dim> result; switch(dim) @@ -551,8 +551,8 @@ ExpFunction::gradient (const Point &p, template void ExpFunction::gradient_list (const vector > &points, - vector > &gradients, - const unsigned int) const + vector > &gradients, + const unsigned int) const { Assert (gradients.size() == points.size(), ExcDimensionMismatch(gradients.size(), points.size())); @@ -585,7 +585,7 @@ ExpFunction::gradient_list (const vector > &points, double LSingularityFunction::value (const Point<2> &p, - const unsigned int) const + const unsigned int) const { double x = p(0); double y = p(1); @@ -602,8 +602,8 @@ LSingularityFunction::value (const Point<2> &p, void LSingularityFunction::value_list (const vector > &points, - vector &values, - const unsigned int) const + vector &values, + const unsigned int) const { Assert (values.size() == points.size(), ExcDimensionMismatch(values.size(), points.size())); @@ -628,7 +628,7 @@ LSingularityFunction::value_list (const vector > &points, double LSingularityFunction::laplacian (const Point<2> &, - const unsigned int) const + const unsigned int) const { return 0.; } @@ -636,8 +636,8 @@ LSingularityFunction::laplacian (const Point<2> &, void LSingularityFunction::laplacian_list (const vector > &points, - vector &values, - const unsigned int) const + vector &values, + const unsigned int) const { Assert (values.size() == points.size(), ExcDimensionMismatch(values.size(), points.size())); @@ -651,7 +651,7 @@ LSingularityFunction::laplacian_list (const vector > &points, Tensor<1,2> LSingularityFunction::gradient (const Point<2> &p, - const unsigned int) const + const unsigned int) const { Assert(false, ExcNotImplemented()); double x = p(0); @@ -673,8 +673,8 @@ LSingularityFunction::gradient (const Point<2> &p, void LSingularityFunction::gradient_list (const vector > &points, - vector > &gradients, - const unsigned int) const + vector > &gradients, + const unsigned int) const { Assert (gradients.size() == points.size(), ExcDimensionMismatch(gradients.size(), points.size())); @@ -686,7 +686,7 @@ LSingularityFunction::gradient_list (const vector > &points, double SlitSingularityFunction::value (const Point<2> &p, - const unsigned int) const + const unsigned int) const { double x = p(0); double y = p(1); @@ -700,8 +700,8 @@ SlitSingularityFunction::value (const Point<2> &p, void SlitSingularityFunction::value_list (const vector > &points, - vector &values, - const unsigned int) const + vector &values, + const unsigned int) const { Assert (values.size() == points.size(), ExcDimensionMismatch(values.size(), points.size())); @@ -721,7 +721,7 @@ SlitSingularityFunction::value_list (const vector > &points, double SlitSingularityFunction::laplacian (const Point<2> &, - const unsigned int) const + const unsigned int) const { return 0.; } @@ -729,8 +729,8 @@ SlitSingularityFunction::laplacian (const Point<2> &, void SlitSingularityFunction::laplacian_list (const vector > &points, - vector &values, - const unsigned int) const + vector &values, + const unsigned int) const { Assert (values.size() == points.size(), ExcDimensionMismatch(values.size(), points.size())); @@ -744,7 +744,7 @@ SlitSingularityFunction::laplacian_list (const vector > &points, Tensor<1,2> SlitSingularityFunction::gradient (const Point<2> &/*p*/, - const unsigned int) const + const unsigned int) const { Assert(false, ExcNotImplemented()); return Tensor<1,2>(); @@ -753,8 +753,8 @@ SlitSingularityFunction::gradient (const Point<2> &/*p*/, void SlitSingularityFunction::gradient_list (const vector > &points, - vector > &gradients, - const unsigned int) const + vector > &gradients, + const unsigned int) const { Assert (gradients.size() == points.size(), ExcDimensionMismatch(gradients.size(), points.size())); @@ -764,8 +764,8 @@ SlitSingularityFunction::gradient_list (const vector > &points, ////////////////////////////////////////////////////////////////////// template -JumpFunction::JumpFunction(const Point& direction, - double steepness) +JumpFunction::JumpFunction(const Point &direction, + const double steepness) : direction(direction), steepness(steepness) @@ -790,7 +790,7 @@ JumpFunction::JumpFunction(const Point& direction, template double JumpFunction::value (const Point &p, - const unsigned int) const + const unsigned int) const { double x = steepness*(cosine*p(0)+sine*p(1)); return -atan(x); @@ -801,8 +801,8 @@ JumpFunction::value (const Point &p, template void JumpFunction::value_list (const vector > &p, - vector &values, - const unsigned int) const + vector &values, + const unsigned int) const { Assert (values.size() == p.size(), ExcDimensionMismatch(values.size(), p.size())); @@ -818,7 +818,7 @@ JumpFunction::value_list (const vector > &p, template double JumpFunction::laplacian (const Point &p, - const unsigned int) const + const unsigned int) const { double x = steepness*(cosine*p(0)+sine*p(1)); double r = 1+x*x; @@ -829,8 +829,8 @@ JumpFunction::laplacian (const Point &p, template void JumpFunction::laplacian_list (const vector > &p, - vector &values, - const unsigned int) const + vector &values, + const unsigned int) const { Assert (values.size() == p.size(), ExcDimensionMismatch(values.size(), p.size())); @@ -850,7 +850,7 @@ JumpFunction::laplacian_list (const vector > &p, template Tensor<1,dim> JumpFunction::gradient (const Point &p, - const unsigned int) const + const unsigned int) const { double x = steepness*(cosine*p(0)+sine*p(1)); double r = -steepness*(1+x*x); @@ -865,8 +865,8 @@ JumpFunction::gradient (const Point &p, template void JumpFunction::gradient_list (const vector > &p, - vector > &gradients, - const unsigned int) const + vector > &gradients, + const unsigned int) const { Assert (gradients.size() == p.size(), ExcDimensionMismatch(gradients.size(), p.size())); -- 2.39.5