/[ff3d]/ff3d/solver/Cell.hpp
ViewVC logotype

Diff of /ff3d/solver/Cell.hpp

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

revision 1.1.1.1 by delpinux, Mon Feb 17 16:32:51 2003 UTC revision 1.2 by delpinux, Sun Jun 15 18:35:30 2003 UTC
# Line 21  Line 21 
21  #ifndef _CELL_HPP_  #ifndef _CELL_HPP_
22  #define _CELL_HPP_  #define _CELL_HPP_
23    
 class Domain;  
24  #include <Vertex.hpp>  #include <Vertex.hpp>
25    
26  /*!  /**
27    \class Cell   * @file   Cell.hpp
28    This class describes 3D Mesh Hexahedron cells.   * @author Stephane Del Pino
29     * @date   Sun Jun 15 19:49:43 2003
30    \author Stéphane Del Pino.   *
31  */   * @brief  This class describes 3D Mesh cells.
32     *
33     *
34     */
35  class Cell {  class Cell {
36  public:  public:
37    enum Type {    enum Type {
# Line 58  public: Line 60  public:
60      return __volume;      return __volume;
61    }    }
62    
63      /**
64       * Replaces
65       *
66       * @param v0
67       * @param v1
68       */
69      inline void replace(Vertex* v0, Vertex* v1)
70      {
71        ffout(0) << *v0 << " -> " << *v1 << '\n';
72        for (size_t i = 0; i<numberOfVertices(); ++i) {
73          if (__vertices[i] == v0) {
74            __vertices[i] = v1;
75            return;
76          }
77          fferr(0) << __FILE__ << ':' << __LINE__ << ':' << *v1 << " was not found!\n";
78          //      std::exit(1);
79        }
80      }
81    
82    //! Number of Vertices.    //! Number of Vertices.
83    virtual const size_t numberOfVertices() const = 0;    virtual const size_t numberOfVertices() const = 0;
84    

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26