Index: Layout/LayoutBase.h =================================================================== RCS file: /home/pooma/Repository/r2/src/Layout/LayoutBase.h,v retrieving revision 1.22 diff -c -p -r1.22 LayoutBase.h *** Layout/LayoutBase.h 2001/05/04 15:41:28 1.22 --- Layout/LayoutBase.h 2001/05/29 22:01:13 *************** public: *** 131,142 **** LayoutBaseData() : ID_m(Unique::get()), hasInternalGuards_m(false), hasExternalGuards_m(false), - externalGuards_m(0), internalGuards_m(0), ! domain_m(Interval()), ! innerdomain_m(Interval()) { } --- 131,142 ---- LayoutBaseData() : ID_m(Unique::get()), + domain_m(Interval()), + innerdomain_m(Interval()), hasInternalGuards_m(false), hasExternalGuards_m(false), internalGuards_m(0), ! externalGuards_m(0) { } *************** public: *** 145,156 **** Domain_t d, Domain_t id) : ID_m(Unique::get()), hasInternalGuards_m(hasIG), hasExternalGuards_m(hasEG), - externalGuards_m(eg), internalGuards_m(ig), ! domain_m(d), ! innerdomain_m(id) { } --- 145,156 ---- Domain_t d, Domain_t id) : ID_m(Unique::get()), + domain_m(d), + innerdomain_m(id), hasInternalGuards_m(hasIG), hasExternalGuards_m(hasEG), internalGuards_m(ig), ! externalGuards_m(eg) { } Index: Layout/UniformGridLayout.h =================================================================== RCS file: /home/pooma/Repository/r2/src/Layout/UniformGridLayout.h,v retrieving revision 1.82 diff -c -p -r1.82 UniformGridLayout.h *** Layout/UniformGridLayout.h 2001/05/04 15:41:28 1.82 --- Layout/UniformGridLayout.h 2001/05/29 22:01:14 *************** public: *** 1629,1637 **** template inline UniformGridLayout:: UniformGridLayout() ! : Observable(*this), ! LayoutBase > ! (new LayoutData_t()) { pdata_m->attach(*this); } --- 1629,1637 ---- template inline UniformGridLayout:: UniformGridLayout() ! : LayoutBase > ! (new LayoutData_t()), ! Observable(*this) { pdata_m->attach(*this); } *************** template *** 1640,1650 **** inline UniformGridLayout:: UniformGridLayout(const Domain_t &gdom, const DistributedTag& t) ! : Observable(*this), ! LayoutBase > (new LayoutData_t(gdom, UniformGridPartition(), ! DistributedMapper(UniformGridPartition()))) { pdata_m->attach(*this); } --- 1640,1650 ---- inline UniformGridLayout:: UniformGridLayout(const Domain_t &gdom, const DistributedTag& t) ! : LayoutBase > (new LayoutData_t(gdom, UniformGridPartition(), ! DistributedMapper(UniformGridPartition()))), ! Observable(*this) { pdata_m->attach(*this); } *************** template *** 1653,1663 **** inline UniformGridLayout:: UniformGridLayout(const Domain_t &gdom, const ReplicatedTag & t) ! : Observable(*this), ! LayoutBase > (new LayoutData_t(gdom, UniformGridPartition(), ! LocalMapper())) { pdata_m->attach(*this); } --- 1653,1663 ---- inline UniformGridLayout:: UniformGridLayout(const Domain_t &gdom, const ReplicatedTag & t) ! : LayoutBase > (new LayoutData_t(gdom, UniformGridPartition(), ! LocalMapper())), ! Observable(*this) { pdata_m->attach(*this); } *************** inline UniformGridLayout:: *** 1667,1677 **** UniformGridLayout(const Domain_t &gdom, const GuardLayers_t &gcs, const DistributedTag &) ! : Observable(*this), ! LayoutBase > (new LayoutData_t(gdom, UniformGridPartition(gcs), ! DistributedMapper(UniformGridPartition(gcs)))) { pdata_m->attach(*this); } --- 1667,1677 ---- UniformGridLayout(const Domain_t &gdom, const GuardLayers_t &gcs, const DistributedTag &) ! : LayoutBase > (new LayoutData_t(gdom, UniformGridPartition(gcs), ! DistributedMapper(UniformGridPartition(gcs)))), ! Observable(*this) { pdata_m->attach(*this); } *************** inline UniformGridLayout:: *** 1681,1691 **** UniformGridLayout(const Domain_t &gdom, const GuardLayers_t &gcs, const ReplicatedTag & ) ! : Observable(*this), ! LayoutBase > (new LayoutData_t(gdom, UniformGridPartition(gcs), ! LocalMapper())) { pdata_m->attach(*this); } --- 1681,1691 ---- UniformGridLayout(const Domain_t &gdom, const GuardLayers_t &gcs, const ReplicatedTag & ) ! : LayoutBase > (new LayoutData_t(gdom, UniformGridPartition(gcs), ! LocalMapper())), ! Observable(*this) { pdata_m->attach(*this); } *************** inline UniformGridLayout:: *** 1695,1706 **** UniformGridLayout(const Domain_t &gdom, const Loc &blocks, const DistributedTag & ) ! : Observable(*this), ! LayoutBase > (new LayoutData_t(gdom, UniformGridPartition(blocks), DistributedMapper( ! UniformGridPartition(blocks)))) { pdata_m->attach(*this); } --- 1695,1706 ---- UniformGridLayout(const Domain_t &gdom, const Loc &blocks, const DistributedTag & ) ! : LayoutBase > (new LayoutData_t(gdom, UniformGridPartition(blocks), DistributedMapper( ! UniformGridPartition(blocks)))), ! Observable(*this) { pdata_m->attach(*this); } *************** inline UniformGridLayout:: *** 1710,1720 **** UniformGridLayout(const Domain_t &gdom, const Loc &blocks, const ReplicatedTag & t) ! : Observable(*this), ! LayoutBase > (new LayoutData_t(gdom, UniformGridPartition(blocks), ! LocalMapper())) { pdata_m->attach(*this); } --- 1710,1720 ---- UniformGridLayout(const Domain_t &gdom, const Loc &blocks, const ReplicatedTag & t) ! : LayoutBase > (new LayoutData_t(gdom, UniformGridPartition(blocks), ! LocalMapper())), ! Observable(*this) { pdata_m->attach(*this); } *************** UniformGridLayout(const Domain_t &gdom, *** 1725,1736 **** const Loc &blocks, const GuardLayers_t &igcs, const DistributedTag &) ! : Observable(*this), ! LayoutBase > (new LayoutData_t(gdom, UniformGridPartition(blocks,igcs), DistributedMapper( ! UniformGridPartition(blocks,igcs)))) { pdata_m->attach(*this); } --- 1725,1736 ---- const Loc &blocks, const GuardLayers_t &igcs, const DistributedTag &) ! : LayoutBase > (new LayoutData_t(gdom, UniformGridPartition(blocks,igcs), DistributedMapper( ! UniformGridPartition(blocks,igcs)))), ! Observable(*this) { pdata_m->attach(*this); } *************** UniformGridLayout(const Domain_t &gdom, *** 1741,1751 **** const Loc &blocks, const GuardLayers_t &igcs, const ReplicatedTag &) ! : Observable(*this), ! LayoutBase > ! (new LayoutData_t(gdom, ! UniformGridPartition(blocks,igcs), ! LocalMapper())) { pdata_m->attach(*this); } --- 1741,1751 ---- const Loc &blocks, const GuardLayers_t &igcs, const ReplicatedTag &) ! : LayoutBase > ! (new LayoutData_t(gdom, ! UniformGridPartition(blocks,igcs), ! LocalMapper())), ! Observable(*this) { pdata_m->attach(*this); } *************** UniformGridLayout(const Domain_t &gdom, *** 1758,1769 **** const GuardLayers_t &egcs, const DistributedTag &) ! : Observable(*this), ! LayoutBase > ! (new LayoutData_t(gdom, ! UniformGridPartition(blocks,igcs,egcs), ! DistributedMapper( ! UniformGridPartition(blocks,igcs,egcs)))) { pdata_m->attach(*this); } --- 1758,1769 ---- const GuardLayers_t &egcs, const DistributedTag &) ! : LayoutBase > ! (new LayoutData_t(gdom, ! UniformGridPartition(blocks,igcs,egcs), ! DistributedMapper( ! UniformGridPartition(blocks,igcs,egcs)))), ! Observable(*this) { pdata_m->attach(*this); } *************** UniformGridLayout(const Domain_t &gdom, *** 1775,1785 **** const GuardLayers_t &igcs, const GuardLayers_t &egcs, const ReplicatedTag &t) ! : Observable(*this), ! LayoutBase > (new LayoutData_t(gdom, UniformGridPartition(blocks,igcs,egcs), ! LocalMapper())) { pdata_m->attach(*this); } --- 1775,1785 ---- const GuardLayers_t &igcs, const GuardLayers_t &egcs, const ReplicatedTag &t) ! : LayoutBase > (new LayoutData_t(gdom, UniformGridPartition(blocks,igcs,egcs), ! LocalMapper())), ! Observable(*this) { pdata_m->attach(*this); } *************** inline UniformGridLayout:: *** 1790,1798 **** UniformGridLayout(const Domain_t &gdom, const Partitioner &gpar, const DistributedTag & ) ! : Observable(*this), ! LayoutBase > ! (new LayoutData_t(gdom,gpar,DistributedMapper(gpar))) { pdata_m->attach(*this); } --- 1790,1798 ---- UniformGridLayout(const Domain_t &gdom, const Partitioner &gpar, const DistributedTag & ) ! : LayoutBase > ! (new LayoutData_t(gdom,gpar,DistributedMapper(gpar))), ! Observable(*this) { pdata_m->attach(*this); } *************** inline UniformGridLayout:: *** 1803,1811 **** UniformGridLayout(const Domain_t &gdom, const Partitioner &gpar, const ReplicatedTag &) ! : Observable(*this), ! LayoutBase > ! (new LayoutData_t(gdom,gpar,LocalMapper())) { pdata_m->attach(*this); } --- 1803,1811 ---- UniformGridLayout(const Domain_t &gdom, const Partitioner &gpar, const ReplicatedTag &) ! : LayoutBase > ! (new LayoutData_t(gdom,gpar,LocalMapper())), ! Observable(*this) { pdata_m->attach(*this); } *************** inline UniformGridLayout:: *** 1816,1824 **** UniformGridLayout(const Domain_t &gdom, const Partitioner &gpar, const ContextMapper & cmap) ! : Observable(*this), ! LayoutBase > ! (new LayoutData_t(gdom,gpar,cmap)) { pdata_m->attach(*this); } --- 1816,1824 ---- UniformGridLayout(const Domain_t &gdom, const Partitioner &gpar, const ContextMapper & cmap) ! : LayoutBase > ! (new LayoutData_t(gdom,gpar,cmap)), ! Observable(*this) { pdata_m->attach(*this); } *************** UniformGridLayout(const Domain_t &gdom, *** 1826,1833 **** template inline UniformGridLayout:: UniformGridLayout(const This_t &model) ! : LayoutBase >(model.pdata_m), ! Observable(*this) { pdata_m->attach(*this); } --- 1826,1833 ---- template inline UniformGridLayout:: UniformGridLayout(const This_t &model) ! : LayoutBase >(model.pdata_m), ! Observable(*this) { pdata_m->attach(*this); } Index: Partition/UniformGridPartition.h =================================================================== RCS file: /home/pooma/Repository/r2/src/Partition/UniformGridPartition.h,v retrieving revision 1.24 diff -c -p -r1.24 UniformGridPartition.h *** Partition/UniformGridPartition.h 2001/04/18 01:41:44 1.24 --- Partition/UniformGridPartition.h 2001/05/29 22:01:15 *************** public: *** 223,233 **** { if (this != &g) { hasGuards_m = g.hasGuards_m; hasCustomEdgeGuards_m = g.hasCustomEdgeGuards_m; internalGuards_m = g.internalGuards_m; externalGuards_m = g.externalGuards_m; - blocks_m = g.blocks(); num_m = g.maxSize(); } return *this; --- 223,233 ---- { if (this != &g) { + blocks_m = g.blocks(); hasGuards_m = g.hasGuards_m; hasCustomEdgeGuards_m = g.hasCustomEdgeGuards_m; internalGuards_m = g.internalGuards_m; externalGuards_m = g.externalGuards_m; num_m = g.maxSize(); } return *this; *************** UniformGridPartition(const GuardLayers inline UniformGridPartition:: UniformGridPartition(const Loc &a) ! : hasGuards_m(false), ! hasCustomEdgeGuards_m(false), ! blocks_m(a) { calcNum(); } --- 501,509 ---- template inline UniformGridPartition:: UniformGridPartition(const Loc &a) ! : blocks_m(a), ! hasGuards_m(false), ! hasCustomEdgeGuards_m(false) { calcNum(); } *************** template *** 512,522 **** inline UniformGridPartition:: UniformGridPartition(const Loc &a, const GuardLayers &gcs) ! : hasGuards_m(gcs != 0), hasCustomEdgeGuards_m(false), internalGuards_m(gcs), ! externalGuards_m(gcs), ! blocks_m(a) { calcNum(); } --- 512,522 ---- inline UniformGridPartition:: UniformGridPartition(const Loc &a, const GuardLayers &gcs) ! : blocks_m(a), ! hasGuards_m(gcs != 0), hasCustomEdgeGuards_m(false), internalGuards_m(gcs), ! externalGuards_m(gcs) { calcNum(); } *************** inline UniformGridPartition:: *** 526,536 **** UniformGridPartition(const Loc &a, const GuardLayers &igcs, const GuardLayers &egcs) ! : hasGuards_m(igcs != 0 || egcs != 0), hasCustomEdgeGuards_m(igcs != egcs), internalGuards_m(igcs), ! externalGuards_m(egcs), ! blocks_m(a) { calcNum(); } --- 526,536 ---- UniformGridPartition(const Loc &a, const GuardLayers &igcs, const GuardLayers &egcs) ! : blocks_m(a), ! hasGuards_m(igcs != 0 || egcs != 0), hasCustomEdgeGuards_m(igcs != egcs), internalGuards_m(igcs), ! externalGuards_m(egcs) { calcNum(); } *************** UniformGridPartition(const Loc &a, *** 538,548 **** template inline UniformGridPartition:: UniformGridPartition(const UniformGridPartition &b) ! : hasGuards_m(b.hasGuards_m), hasCustomEdgeGuards_m(b.hasCustomEdgeGuards_m), internalGuards_m(b.internalGuards_m), externalGuards_m(b.externalGuards_m), - blocks_m(b.blocks_m), num_m(b.num_m) { } --- 538,548 ---- template inline UniformGridPartition:: UniformGridPartition(const UniformGridPartition &b) ! : blocks_m(b.blocks_m), ! hasGuards_m(b.hasGuards_m), hasCustomEdgeGuards_m(b.hasCustomEdgeGuards_m), internalGuards_m(b.internalGuards_m), externalGuards_m(b.externalGuards_m), num_m(b.num_m) { } Index: Utilities/RefCountedBlockPtr.h =================================================================== RCS file: /home/pooma/Repository/r2/src/Utilities/RefCountedBlockPtr.h,v retrieving revision 1.61 diff -c -p -r1.61 RefCountedBlockPtr.h *** Utilities/RefCountedBlockPtr.h 2001/05/14 21:11:24 1.61 --- Utilities/RefCountedBlockPtr.h 2001/05/29 22:01:15 *************** public: *** 588,605 **** { } inline RefCountedBlockPtr(size_t size, const T & model) ! : blockControllerPtr_m(new Controller(size,model)), ! offset_m(0) { } inline RefCountedBlockPtr(size_t size, const NoInitTag &) ! : blockControllerPtr_m(new Controller(size, #ifndef __MWERKS__ ! typename Controller::NoInitTag())), #else ! Controller::NoInitTag())), #endif - offset_m(0) { #ifndef __MWERKS__ blockControllerPtr_m->resize(0,typename Controller::NoInitTag()); --- 588,605 ---- { } inline RefCountedBlockPtr(size_t size, const T & model) ! : offset_m(0), ! blockControllerPtr_m(new Controller(size,model)) { } inline RefCountedBlockPtr(size_t size, const NoInitTag &) ! : offset_m(0), ! blockControllerPtr_m(new Controller(size, #ifndef __MWERKS__ ! typename Controller::NoInitTag())) #else ! Controller::NoInitTag())) #endif { #ifndef __MWERKS__ blockControllerPtr_m->resize(0,typename Controller::NoInitTag()); *************** public: *** 613,620 **** // but not the bounds checking. inline RefCountedBlockPtr(T *p, size_t size) ! : blockControllerPtr_m(new Controller(p, size)), ! offset_m(0) { } // Copy constructor --- 613,620 ---- // but not the bounds checking. inline RefCountedBlockPtr(T *p, size_t size) ! : offset_m(0), ! blockControllerPtr_m(new Controller(p, size)) { } // Copy constructor *************** public: *** 628,635 **** // checking polarity (That_t). inline RefCountedBlockPtr(const That_t & model) ! : blockControllerPtr_m(model.blockControllerPtr_m), ! offset_m(model.offset_m) { } // Copy constructor with offset --- 628,635 ---- // checking polarity (That_t). inline RefCountedBlockPtr(const That_t & model) ! : offset_m(model.offset_m), ! blockControllerPtr_m(model.blockControllerPtr_m) { } // Copy constructor with offset