]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move a function out of line. 15169/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 3 May 2023 18:54:58 +0000 (12:54 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 4 May 2023 23:43:39 +0000 (17:43 -0600)
include/deal.II/lac/read_write_vector.h

index 4131ff1d79ba2fedffb0691d60126c7d10b02150..c3e9d54496a6fc428dc8a959480688827128d9bf 100644 (file)
@@ -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<unsigned int>(
-        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 <typename Number>
   inline ReadWriteVector<Number>::ReadWriteVector()
     : Subscriptor()
@@ -1058,6 +1053,19 @@ namespace LinearAlgebra
 
 
 
+  template <typename Number>
+  inline unsigned int
+  ReadWriteVector<Number>::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<unsigned int>(
+      stored_elements.index_within_set(global_index));
+  }
+
+
+
   template <typename Number>
   template <typename Functor>
   inline ReadWriteVector<Number>::FunctorTemplate<Functor>::FunctorTemplate(

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.