/[escript]/trunk/escript/src/AbstractTransportProblem.h
ViewVC logotype

Diff of /trunk/escript/src/AbstractTransportProblem.h

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

revision 1367 by gross, Wed Dec 19 02:45:07 2007 UTC revision 1811 by ksteube, Thu Sep 25 23:11:13 2008 UTC
# Line 1  Line 1 
1    
 /* $Id$ */  
   
2  /*******************************************************  /*******************************************************
3   *  *
4   *       Copyright 2007 by University of Queensland  * Copyright (c) 2003-2008 by University of Queensland
5   *  * Earth Systems Science Computational Center (ESSCC)
6   *                http://esscc.uq.edu.au  * http://www.uq.edu.au/esscc
7   *        Primary Business: Queensland, Australia  *
8   *  Licensed under the Open Software License version 3.0  * Primary Business: Queensland, Australia
9   *     http://www.opensource.org/licenses/osl-3.0.php  * Licensed under the Open Software License version 3.0
10   *  * http://www.opensource.org/licenses/osl-3.0.php
11   *******************************************************/  *
12    *******************************************************/
13    
14    
15  #if !defined  escript_AbstractTransportProblem_H  #if !defined  escript_AbstractTransportProblem_H
16  #define escript_AbstractTransportProblem_H  #define escript_AbstractTransportProblem_H
# 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 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.1367  
changed lines
  Added in v.1811

  ViewVC Help
Powered by ViewVC 1.1.26