From 6de66f91a6e84a9cb48b7ec5d631d89214345236 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 3 May 2023 12:54:58 -0600 Subject: [PATCH] Move a function out of line. --- include/deal.II/lac/read_write_vector.h | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) 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( -- 2.39.5