From: David Wells Date: Fri, 12 Mar 2021 23:33:45 +0000 (-0500) Subject: Rearrange some code. X-Git-Tag: v9.3.0-rc1~314^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c2d0f490a034cc48e27fce313fcfbce4daf7fd8;p=dealii.git Rearrange some code. ZeroFunction inherits from ConstantFunction so it logically should be defined afterwards. --- diff --git a/include/deal.II/base/function.templates.h b/include/deal.II/base/function.templates.h index 24933e819c..313ce62b63 100644 --- a/include/deal.II/base/function.templates.h +++ b/include/deal.II/base/function.templates.h @@ -317,18 +317,6 @@ Function::memory_consumption() const -//--------------------------------------------------------------------------- - -namespace Functions -{ - template - ZeroFunction::ZeroFunction( - const unsigned int n_components) - : ConstantFunction(RangeNumberType(), n_components) - {} - -} // namespace Functions - //--------------------------------------------------------------------------- namespace Functions @@ -341,6 +329,8 @@ namespace Functions , function_value_vector(n_components, value) {} + + template ConstantFunction::ConstantFunction( const std::vector &values) @@ -349,6 +339,7 @@ namespace Functions {} + template ConstantFunction::ConstantFunction( const Vector &values) @@ -361,6 +352,7 @@ namespace Functions } + template ConstantFunction::ConstantFunction( const RangeNumberType *begin_ptr, @@ -465,6 +457,7 @@ namespace Functions } + template void ConstantFunction::vector_gradient( @@ -479,6 +472,7 @@ namespace Functions } + template void ConstantFunction::gradient_list( @@ -494,6 +488,7 @@ namespace Functions } + template void ConstantFunction::vector_gradient_list( @@ -530,6 +525,14 @@ namespace Functions { return 0; } + + + + template + ZeroFunction::ZeroFunction( + const unsigned int n_components) + : ConstantFunction(RangeNumberType(), n_components) + {} } // namespace Functions //---------------------------------------------------------------------------