00001 /* randomized refinement for hexahedra 00002 */ 00003 00004 #ifndef randRef_hh 00005 #define randRef_hh 00006 00007 #include "basics/typedefs.hh" 00008 #include "basics/exceptions.hh" 00009 #include "space/postProcess.hh" 00010 #include "space/hpMethod.hh" 00011 00012 using concepts::Real; 00013 00014 class RandomizeRefinement : public concepts::CellPostprocess<Real> { 00015 public: 00016 RandomizeRefinement 00017 (concepts::AdaptiveSpace<Real, concepts::AdaptiveAdjustP<3> >& spc) : 00018 spc_(spc) {} 00019 virtual void operator() (const concepts::Element<Real>& elm) 00020 throw(concepts::MissingFeature); 00021 virtual void operator() (const concepts::Cell& cell) 00022 throw(concepts::MissingFeature) {} 00023 private: 00025 concepts::AdaptiveSpace<Real, concepts::AdaptiveAdjustP<3> >& spc_; 00026 }; 00027 00028 #endif // randRef_hh