[PATCH] Add missing global iterators for DomainLayout
Richard Guenther
rguenth at tat.physik.uni-tuebingen.de
Mon Dec 16 21:59:57 UTC 2002
The following patch allows one to iterate over all global patches
(for serial IO) even if only using a DomainLayout.
Tested on serial powerpc-unknown-linux-gnu with (obviously) no
regressions.
2002Dec16 Richard Guenther <richard.guenther at uni-tuebingen.de>
* Layout/DomainLayout.h: added beginGlobal(), endGlobal()
iterators, sizeGlobal() as in LayoutBase
--- r2/src/Layout/DomainLayout.h 2001-08-30 03:15:27.000000000 +0200
+++ pooma-bugfixes/r2/src/Layout/DomainLayout.h 2002-12-16 20:57:53.000000000 +0100
@@ -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