From: Wolfgang Bangerth Date: Wed, 3 May 2023 18:54:58 +0000 (-0600) Subject: Move a function out of line. X-Git-Tag: v9.5.0-rc1~258^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15169%2Fhead;p=dealii.git Move a function out of line. --- diff --git a/include/deal.II/lac/read_write_vector.h b/include/deal.II/lac/read_write_vector.h index 4131ff1d79..c3e9d54496 100644 --- a/include/deal.II/lac/read_write_vector.h +++ b/include/deal.II/lac/read_write_vector.h @@ -688,13 +688,7 @@ namespace LinearAlgebra * Return the local position of @p global_index. */ unsigned int - global_to_local(const types::global_dof_index global_index) const - { - // the following will throw an exception if the global_index is not - // in the remaining_elements - return static_cast( - stored_elements.index_within_set(global_index)); - } + global_to_local(const types::global_dof_index global_index) const; /** * A helper function that is used to resize the val array. @@ -796,6 +790,7 @@ namespace LinearAlgebra #ifndef DOXYGEN + template inline ReadWriteVector::ReadWriteVector() : Subscriptor() @@ -1058,6 +1053,19 @@ namespace LinearAlgebra + template + inline unsigned int + ReadWriteVector::global_to_local( + const types::global_dof_index global_index) const + { + // the following will throw an exception if the global_index is not + // in the remaining_elements + return static_cast( + stored_elements.index_within_set(global_index)); + } + + + template template inline ReadWriteVector::FunctorTemplate::FunctorTemplate(