00001
00002
00003 #ifndef _included_GridHierarchyIndex_h
00004 #define _included_GridHierarchyIndex_h
00005
00011 #include "generic.h"
00012
00013 #ifndef foreachGF
00014 #define foreachGF(gh,gf,DIM,Type) { \
00015 const int name2(faGF,_GFNUM) = (gh).gfnum; \
00016 for (int gfid = 0; gfid < name2(faGF,_GFNUM); gfid++) { \
00017 if(!(gh).gflist[gfid]) ; else { \
00018 GridFunction(DIM)<Type> & gf = \
00019 *((GridFunction(DIM)<Type> *) gh.gflist[gfid]);
00020 #endif
00021
00022 #ifndef end_foreachGF_sync
00023 #define end_foreachGF_sync } } comm_service::barrier(); }
00024 #endif
00025
00026 #ifndef end_foreachGF
00027 #define end_foreachGF } } }
00028 #endif
00029
00030 #endif