/[escript]/branches/arrexp_2137_win_merge/escript/src/AbstractTransportProblem.h
ViewVC logotype

Diff of /branches/arrexp_2137_win_merge/escript/src/AbstractTransportProblem.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1364 by gross, Mon Dec 17 07:22:45 2007 UTC revision 1417 by gross, Mon Feb 25 04:45:48 2008 UTC
# Line 1  Line 1 
1    
2  /* $Id:$ */  /* $Id$ */
3    
4  /*******************************************************  /*******************************************************
5   *   *
# Line 60  class AbstractTransportProblem { Line 60  class AbstractTransportProblem {
60    
61    ESCRIPT_DLL_API    ESCRIPT_DLL_API
62    AbstractTransportProblem(const double theta,    AbstractTransportProblem(const double theta,
                            const double dt_max,  
63                             const int blocksize,                             const int blocksize,
64                             const FunctionSpace& functionspace);                             const FunctionSpace& functionspace);
65    
# Line 82  class AbstractTransportProblem { Line 81  class AbstractTransportProblem {
81    inline FunctionSpace getFunctionSpace() const    inline FunctionSpace getFunctionSpace() const
82    {    {
83         if (isEmpty())         if (isEmpty())
84              throw TransportProblemException("Error - Matrix is empty.");              throw TransportProblemException("Error - Transport Problem is empty.");
85         return m_functionspace;         return m_functionspace;
86    }    }
87    
# Line 94  class AbstractTransportProblem { Line 93  class AbstractTransportProblem {
93    inline int getBlockSize() const    inline int getBlockSize() const
94    {    {
95         if (isEmpty())         if (isEmpty())
96              throw TransportProblemException("Error - Matrix is empty.");              throw TransportProblemException("Error - Transport Problem is empty.");
97         return m_blocksize;         return m_blocksize;
98    }    }
99    
# Line 111  class AbstractTransportProblem { Line 110  class AbstractTransportProblem {
110    */    */
111    ESCRIPT_DLL_API    ESCRIPT_DLL_API
112    void setInitialValue(Data& u) const;    void setInitialValue(Data& u) const;
113    
114    /**    /**
115       \brief resets the transport operator typically as they have been updated.       \brief resets the transport operator typically as they have been updated.
116    */    */
117    ESCRIPT_DLL_API    ESCRIPT_DLL_API
118    virtual void resetTransport() const;    virtual void resetTransport() const;
119    
120      /**
121         \brief
122         inserts constraint u_{,t}=r where q>0  into the problem.
123      */
124      ESCRIPT_DLL_API
125      void insertConstraint(Data& source, Data& q, Data& r) const;
126      /**
127         \brief resets the transport operator typically as they have been updated.
128      */
129    
130      /**
131       *      \brief returns a save time step size.
132       *        */
133      ESCRIPT_DLL_API
134      virtual double getSafeTimeStepSize() const;
135    
136    
137   protected:   protected:
138    
139   private:   private:
# Line 134  class AbstractTransportProblem { Line 151  class AbstractTransportProblem {
151    */    */
152    ESCRIPT_DLL_API    ESCRIPT_DLL_API
153    virtual void copyInitialValue(Data& u) const;    virtual void copyInitialValue(Data& u) const;
154      /**
155         \brief
156         copy constraint u_{,t}=r where q>0  into the problem
157         it can be assumed that q and r are not empty and have  
158         appropriate shape and function space.
159      */
160      ESCRIPT_DLL_API
161      virtual void copyConstraint(Data& source, Data& q, Data& r) const;
162    
163    int m_empty;    int m_empty;
164    int m_blocksize;    int m_blocksize;
165    double m_theta;    double m_theta;
   double m_dt_max;  
166    FunctionSpace m_functionspace;    FunctionSpace m_functionspace;
167    
168  };  };

Legend:
Removed from v.1364  
changed lines
  Added in v.1417

  ViewVC Help
Powered by ViewVC 1.1.26