108 < dim, dimworld, Alberta::Real, AlbertaGridFamily< dim, dimworld > >
128#if (__GNUC__ < 4) && !(defined __ICC)
136 template< class, class >
169 typedef typename Traits::template
Codim<0>::LeafIterator LeafIterator;
175 struct AdaptationState
177 enum Phase { ComputationPhase, PreAdaptationPhase, PostAdaptationPhase };
186 : phase_( ComputationPhase ),
191 void mark (
int count )
196 refineMarked_ += (2 << count);
199 void unmark (
int count )
204 refineMarked_ -= (2 << count);
207 bool coarsen ()
const
209 return (coarsenMarked_ > 0);
212 int refineMarked ()
const
214 return refineMarked_;
219 if( phase_ != ComputationPhase )
220 error(
"preAdapt may only be called in computation phase." );
221 phase_ = PreAdaptationPhase;
226 if( phase_ != PreAdaptationPhase )
227 error(
"adapt may only be called in preadapdation phase." );
228 phase_ = PostAdaptationPhase;
233 if( phase_ != PostAdaptationPhase )
234 error(
"postAdapt may only be called in postadaptation phase." );
235 phase_ = ComputationPhase;
242 void error (
const std::string &message )
244 DUNE_THROW( InvalidStateException, message );
248 template<
class DataHandler >
249 struct AdaptationCallback;
252 static const int MAXL = 64;
275 template<
class Proj,
class Impl >
293 template<
int cd, PartitionIteratorType pitype>
298 template<
int cd, PartitionIteratorType pitype>
303 template<
int codim >
308 template<
int codim >
313 template<
int codim, PartitionIteratorType pitype >
319 template<
int codim, PartitionIteratorType pitype >
325 template<
int codim >