~ubuntu-branches/ubuntu/wily/dolfin/wily-proposed

« back to all changes in this revision

Viewing changes to dolfin/mesh/MeshData.h

  • Committer: Package Import Robot
  • Author(s): Johannes Ring
  • Date: 2015-03-17 07:57:11 UTC
  • mfrom: (1.1.18) (19.1.24 experimental)
  • Revision ID: package-import@ubuntu.com-20150317075711-1v207zbty9qmygow
Tags: 1.5.0-1
* New upstream release (closes: #780359).
* debian/control:
  - Bump Standards-Version to 3.9.6 (no changes needed).
  - Bump X-Python-Version to >= 2.7.
  - Update package names for new SONAME 1.5 (libdolfin1.4 ->
    libdolfin1.5, libdolfin1.4-dbg -> libdolfin1.5-dbg and
    libdolfin1.4-dev -> libdolfin1.5-dev).
  - Bump minimum required version for python-instant, python-ufl and
    python-ffc to 1.5.0.
  - Add python-sympy and python-six to Depends for binary package
    python-dolfin.
  - Add dh-python to Build-Depends.
  - Remove libcgal-dev from {Build-}Depends.
* Remove CSGCGALMeshGenerator3D-oom.patch since CGAL is no longer used
  by DOLFIN.
* Move debian/libdolfin1.4.install -> debian/libdolfin1.5.install.
* debian/rules: No longer any non DFSG-free stuff to remove, so update
  get-orig-source target (update debian/watch accordingly).
* Update debian/copyright and debian/copyright_hints.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#define __MESH_DATA_H
26
26
 
27
27
#include <map>
 
28
#include <memory>
28
29
#include <string>
29
30
#include <vector>
30
 
#include <memory>
31
31
#include <dolfin/common/Variable.h>
32
32
 
33
33
namespace dolfin
34
34
{
35
35
 
36
36
  class Mesh;
37
 
  template <typename T> class MeshFunction;
38
37
 
39
38
  /// The class MeshData is a container for auxiliary mesh data,
40
39
  /// represented either as arrays or maps. Each dataset is identified
91
90
 
92
91
    //--- Creation of data ---
93
92
 
94
 
    /// This function is no longer supported. It is retained to print
95
 
    /// an informative error message. It will be removed in the
96
 
    /// future.
97
 
    std::shared_ptr<MeshFunction<std::size_t> >
98
 
      create_mesh_function(std::string name);
99
 
 
100
 
    /// This function is no longer supported. It is retained to print
101
 
    /// an informative error message. It will be removed in the
102
 
    /// future.
103
 
    std::shared_ptr<MeshFunction<std::size_t> >
104
 
      create_mesh_function(std::string name, std::size_t dim);
105
 
 
106
 
    /// Create empty array (vector) with given name
107
 
    ///
108
 
    /// *Arguments*
109
 
    ///     name (std::string)
110
 
    ///         The name of the array.
111
 
    ///
112
 
    /// *Returns*
113
 
    ///     std::vector<std::size_t>
114
 
    ///         The array.
115
 
    //std::vector<std::size_t>& create_array(std::string name);
116
 
 
117
93
    /// Create array (vector) with given name and size
118
94
    ///
119
95
    /// *Arguments*
125
101
    /// *Returns*
126
102
    ///     std::vector<std::size_t>
127
103
    ///         The array.
128
 
    //private:
129
104
    std::vector<std::size_t>& create_array(std::string name, std::size_t dim);
130
105
 
131
 
    //public:
132
106
    //--- Retrieval of data ---
133
107
 
134
 
    /// This function is no longer supported. It is retained to print
135
 
    /// an informative error message. It will be removed in the
136
 
    /// future.
137
 
    std::shared_ptr<MeshFunction<std::size_t> >
138
 
      mesh_function(const std::string name) const;
139
 
 
140
108
    /// Return array with given name (returning zero if data is not
141
109
    /// available)
142
110
    ///
195
163
    // A map from named mesh array data to vector for dim
196
164
    std::vector<std::map<std::string, std::vector<std::size_t> > > _arrays;
197
165
 
198
 
    // List of depcrecated named data
 
166
    // List of deprecated named data
199
167
    std::vector<std::string> _deprecated_names;
200
168
 
201
169
  };