]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Allow access to the block indices.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 18 May 2000 12:14:55 +0000 (12:14 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 18 May 2000 12:14:55 +0000 (12:14 +0000)
git-svn-id: https://svn.dealii.org/trunk@2888 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/block_vector.h

index a944da43805520650c739e6209e4eee49dd03e14..bc6400f5e45b48b3e418384ef0a014f2c98c6555 100644 (file)
@@ -183,7 +183,17 @@ class BlockVector
                                     /**
                                      * Read-only access to a single block.
                                      */
-    const Vector<Number>& block (const unsigned int i) const;
+    const Vector<Number> &
+    block (const unsigned int i) const;
+
+                                    /**
+                                     * Return a reference on the
+                                     * object that describes the
+                                     * mapping between block and
+                                     * global indices.
+                                     */
+    const BlockIndices<n_blocks> &
+    get_block_indices () const;
     
                                     /**
                                      * $U(0-N) = s$: fill all components.
@@ -512,6 +522,8 @@ BlockVector<n_blocks,Number>::block(unsigned int i)
   return components[i];
 }
 
+
+
 template <int n_blocks, typename Number>
 inline
 const Vector<Number>&
@@ -523,6 +535,16 @@ BlockVector<n_blocks,Number>::block(unsigned int i) const
 }
 
 
+
+template <int n_blocks, typename Number>
+inline
+const BlockIndices<n_blocks>&
+BlockVector<n_blocks,Number>::get_block_indices () const
+{
+  return block_indices;
+}
+
+
 /**
  * Global function #swap# which overloads the default implementation
  * of the C++ standard library which uses a temporary object. The

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.