Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

SimpleTimeSlab.h

Go to the documentation of this file.
00001 // Copyright (C) 2003 Johan Hoffman and Anders Logg.
00002 // Licensed under the GNU GPL Version 2.
00003 
00004 #ifndef __SIMPLE_TIME_SLAB_H
00005 #define __SIMPLE_TIME_SLAB_H
00006 
00007 #include <dolfin/Element.h>
00008 #include <dolfin/TimeSlab.h>
00009 
00010 namespace dolfin {
00011 
00012   class Adaptivity;
00013   class RHS;
00014   class Solution;
00015 
00017 
00018   class SimpleTimeSlab : public TimeSlab {
00019   public:
00020     
00022     SimpleTimeSlab(real t0, real t1, Solution& u, Adaptivity& adaptivity);
00023     
00025     ~SimpleTimeSlab();
00026 
00028     bool accept(RHS& f, real TOL);
00029     
00031     void countElementGroups(unsigned int& size);
00032     
00034     void addElementGroups(NewArray<ElementGroup*>& groups, unsigned int& pos);
00035 
00037     void show(unsigned int depth = 0) const;
00038 
00039   private:
00040     
00041     // Create new time slab
00042     void create(Solution& u, Adaptivity& adaptivity);
00043     
00044   };
00045 
00046 }
00047 
00048 #endif


Documentation automatically generated with Doxygen on 10 Sep 2004.