[PATCH] Make DomainLayout match LayoutBase interface wrt global iterators

Richard Guenther rguenth at tat.physik.uni-tuebingen.de
Tue Aug 13 13:05:13 UTC 2002


Hi!

The attached patch adds beginGlobal(), endGlobal() iterators and
globalSize() to match the interface in LayoutBase.

Compiled and tested on serial i686-pc-linux-gnu.

Richard.

--
Richard Guenther <richard.guenther at uni-tuebingen.de>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/
The GLAME Project: http://www.glame.de/
-------------- next part --------------
2002Aug13  Richard Guenther <richard.guenther at uni-tuebingen.de>

        * Layout/DomainLayout.h: added beginGlobal(), endGlobal()
        iterators, sizeGlobal() as in LayoutBase

-------------- next part --------------
Index: src/Layout/DomainLayout.h
===================================================================
RCS file: /home/pooma/Repository/r2/src/Layout/DomainLayout.h,v
retrieving revision 1.25
diff -u -r1.25 DomainLayout.h
--- src/Layout/DomainLayout.h	2001/08/30 01:15:27	1.25
+++ src/Layout/DomainLayout.h	2002/08/13 13:01:30
@@ -339,6 +339,29 @@
       return size();
     }
 
+  // Return begin and end iterators for the list of all global subdomains
+
+  inline iterator beginGlobal()
+    { 
+      return begin();
+    }
+  inline iterator endGlobal()
+    { 
+      return end();
+    }
+  inline const_iterator beginGlobal() const 
+    { 
+      return begin();
+    }
+  inline const_iterator endGlobal() const
+    { 
+      return end();
+    }
+  inline long sizeGlobal() const
+    {
+      return size();
+    }
+
   // Return begin and end iterators for the list of all remote subdomains
 
   inline iterator beginRemote()


More information about the pooma-dev mailing list