~corrado-maurini/dolfin/tao

« back to all changes in this revision

Viewing changes to dolfin/mesh/TriangleCell.h

  • Committer: corrado maurini
  • Date: 2012-12-18 12:16:08 UTC
  • mfrom: (6685.78.207 trunk)
  • Revision ID: corrado.maurini@upmc.fr-20121218121608-nk82ly9jgsld9u84
updating with trunk, fix uint in TAO solver and hacking the check for tao FindTAO.cmake

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    TriangleCell() : CellType(triangle, interval) {}
41
41
 
42
42
    /// Return topological dimension of cell
43
 
    uint dim() const;
 
43
    std::size_t dim() const;
44
44
 
45
45
    /// Return number of entitites of given topological dimension
46
 
    uint num_entities(uint dim) const;
 
46
    std::size_t num_entities(std::size_t dim) const;
47
47
 
48
48
    /// Return number of vertices for entity of given topological dimension
49
 
    uint num_vertices(uint dim) const;
 
49
    std::size_t num_vertices(std::size_t dim) const;
50
50
 
51
51
    /// Return orientation of the cell
52
 
    uint orientation(const Cell& cell) const;
 
52
    std::size_t orientation(const Cell& cell) const;
53
53
 
54
54
    /// Create entities e of given topological dimension from vertices v
55
 
    void create_entities(std::vector<std::vector<uint> >& e, uint dim, const uint* v) const;
 
55
    void create_entities(std::vector<std::vector<std::size_t> >& e, std::size_t dim,
 
56
                         const std::size_t* v) const;
56
57
 
57
58
    /// Refine cell uniformly
58
 
    void refine_cell(Cell& cell, MeshEditor& editor, uint& current_cell) const;
 
59
    void refine_cell(Cell& cell, MeshEditor& editor, std::size_t& current_cell) const;
59
60
 
60
61
    /// Compute (generalized) volume (area) of triangle
61
62
    double volume(const MeshEntity& triangle) const;
64
65
    double diameter(const MeshEntity& triangle) const;
65
66
 
66
67
    /// Compute component i of normal of given facet with respect to the cell
67
 
    double normal(const Cell& cell, uint facet, uint i) const;
 
68
    double normal(const Cell& cell, std::size_t facet, std::size_t i) const;
68
69
 
69
70
    /// Compute of given facet with respect to the cell
70
 
    Point normal(const Cell& cell, uint facet) const;
 
71
    Point normal(const Cell& cell, std::size_t facet) const;
71
72
 
72
73
    /// Compute the area/length of given facet with respect to the cell
73
 
    double facet_area(const Cell& cell, uint facet) const;
 
74
    double facet_area(const Cell& cell, std::size_t facet) const;
74
75
 
75
76
    /// Order entities locally
76
77
    void order(Cell& cell,
77
 
               const std::vector<uint>& local_to_global_vertex_indices) const;
 
78
               const std::vector<std::size_t>& local_to_global_vertex_indices) const;
78
79
 
79
80
    /// Return description of cell type
80
81
    std::string description(bool plural) const;
82
83
  private:
83
84
 
84
85
    // Find local index of edge i according to ordering convention
85
 
    uint find_edge(uint i, const Cell& cell) const;
 
86
    std::size_t find_edge(std::size_t i, const Cell& cell) const;
86
87
 
87
88
  };
88
89