7#include "refinement.hh"
26 enum pattern {NONE, H4, P1ISO, P2ISO, P1ANISO, P2ANISO, H2V, H2H};
52 inline uint boundary()
const {
return bndAttrib_; }
56 inline uint
ncell()
const {
return cMap_.size(); }
59 virtual std::ostream&
info(std::ostream& os)
const{
return os <<
"LocalMesh[]";}
68 cells_(cells), iter_(cells.begin()){}
69 inline S(
const S &
scan) : iter_(
scan.iter_), cells_(
scan.cells_) {};
71 inline bool eos()
const {
return iter_ == cells_.end(); }
72 inline concepts::Cell2& operator++(
int) {
return *((iter_++)->second); }
94template<class F, class H = typename concepts::Realtype<F>::type >
122 enum subType {NONE, div4, divH2 , div2V};
148 __gnu_cxx::hash_map<uint, PointProjection> data_;
158template<class F, class H = typename concepts::Realtype<F>::type >
189 virtual std::ostream&
info(std::ostream& os)
const;
193 std::auto_ptr<concepts::ElementFunction<F,H> > f_;
203template<uint dim, class F, class H = typename concepts::Realtype<F>::type >
253 virtual std::ostream&
info(std::ostream& os)
const;
257 std::auto_ptr<concepts::ElementFunction<F,H> > f_;
270template<
class F = Real>
316 virtual std::ostream&
info(std::ostream& os)
const;
335 const LocalEstimator<F>& estimator_;
348 void compute_H4Iso_Ind_K(
LocalMesh2& localMesh,
356 void compute_P1Iso_Ind_K(
LocalMesh2& localMesh,
384template<
class F = Real>
392 weightedIndictor(uint K, Real sup,
enum pattern pat);
395 bool operator<(
const weightedIndictor& wI)
const;
397 bool operator==(
const weightedIndictor& wI)
const;
400 Real get()
const{
return sup_2;}
412 virtual std::ostream& info(std::ostream& os)
const;
428 void buildRefinement(
const Marking<F>& mark,
const LocalEstimator<F>& estimator);
430 virtual std::ostream&
info(std::ostream& os)
const;
void addRhs_f(const concepts::ElementFormula< F > &f, const Real c=1)
virtual ~BuergDoerfler()
Destructor.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
BuergRefinement(Real theta=0.35)
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual ~BuergRefinement()
Destructor.
uint ncell() const
Returns the number of cells in the mesh.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
LocalProjections_P(const enum pattern pat, const concepts::HashMap< const hp2D::Quad< H > * > &source, LocalMesh2 &locMsh, const concepts::Vector< F > &sol, const concepts::ElementFunction< F, H > &f)
virtual LocalProjections_P< dim, F, H > * clone() const
Virtual copy constructor.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual LocalProjections_S< F, H > * clone() const
Virtual copy constructor.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.