Blockstructured Adaptive Mesh Refinement in object-oriented C++
00001 #ifndef _included_GridHierarchyIndex_h
00002 #define _included_GridHierarchyIndex_h
00003
00009 #include <generic.h>
00010
00011 #ifndef foreachGF
00012 #define foreachGF(gh,gf,DIM,Type) { \
00013 const int name2(faGF,_GFNUM) = (gh).gfnum; \
00014 for (int gfid = 0; gfid < name2(faGF,_GFNUM); gfid++) { \
00015 if(!(gh).gflist[gfid]) ; else { \
00016 GridFunction(DIM)<Type> & gf = \
00017 *((GridFunction(DIM)<Type> *) gh.gflist[gfid]);
00018 #endif
00019
00020 #ifndef end_foreachGF_sync
00021 #define end_foreachGF_sync } } comm_service::barrier(); }
00022 #endif
00023
00024 #ifndef end_foreachGF
00025 #define end_foreachGF } } }
00026 #endif
00027
00028 #endif
Quickstart Users Guide Programmers Reference Installation Examples Download
AMROC Main Home Contactlast update: 06/01/04