This file is indexed.

/usr/share/pyshared/ufc/ufc.py is in python-ufc 2.0.5-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.4
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.



from sys import version_info
if version_info >= (2,6,0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_ufc', [dirname(__file__)])
        except ImportError:
            import _ufc
            return _ufc
        if fp is not None:
            try:
                _mod = imp.load_module('_ufc', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _ufc = swig_import_helper()
    del swig_import_helper
else:
    import _ufc
del version_info
try:
    _swig_property = property
except NameError:
    pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
    if (name == "thisown"): return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name,None)
    if method: return method(self,value)
    if (not static):
        self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)

def _swig_setattr(self,class_type,name,value):
    return _swig_setattr_nondynamic(self,class_type,name,value,0)

def _swig_getattr(self,class_type,name):
    if (name == "thisown"): return self.this.own()
    method = class_type.__swig_getmethods__.get(name,None)
    if method: return method(self)
    raise AttributeError(name)

def _swig_repr(self):
    try: strthis = "proxy of " + self.this.__repr__()
    except: strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

try:
    _object = object
    _newclass = 1
except AttributeError:
    class _object : pass
    _newclass = 0


SHARED_PTR_DISOWN = _ufc.SHARED_PTR_DISOWN
UFC_VERSION_MAJOR = _ufc.UFC_VERSION_MAJOR
UFC_VERSION_MINOR = _ufc.UFC_VERSION_MINOR
UFC_VERSION_MAINTENANCE = _ufc.UFC_VERSION_MAINTENANCE
interval = _ufc.interval
triangle = _ufc.triangle
quadrilateral = _ufc.quadrilateral
tetrahedron = _ufc.tetrahedron
hexahedron = _ufc.hexahedron
class mesh(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, mesh, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, mesh, name)
    __repr__ = _swig_repr
    def __init__(self): 
        this = _ufc.new_mesh()
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _ufc.delete_mesh
    __del__ = lambda self : None;
    __swig_setmethods__["topological_dimension"] = _ufc.mesh_topological_dimension_set
    __swig_getmethods__["topological_dimension"] = _ufc.mesh_topological_dimension_get
    if _newclass:topological_dimension = _swig_property(_ufc.mesh_topological_dimension_get, _ufc.mesh_topological_dimension_set)
    __swig_setmethods__["geometric_dimension"] = _ufc.mesh_geometric_dimension_set
    __swig_getmethods__["geometric_dimension"] = _ufc.mesh_geometric_dimension_get
    if _newclass:geometric_dimension = _swig_property(_ufc.mesh_geometric_dimension_get, _ufc.mesh_geometric_dimension_set)
    __swig_setmethods__["num_entities"] = _ufc.mesh_num_entities_set
    __swig_getmethods__["num_entities"] = _ufc.mesh_num_entities_get
    if _newclass:num_entities = _swig_property(_ufc.mesh_num_entities_get, _ufc.mesh_num_entities_set)
mesh_swigregister = _ufc.mesh_swigregister
mesh_swigregister(mesh)
cvar = _ufc.cvar
UFC_VERSION = cvar.UFC_VERSION

class cell(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, cell, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, cell, name)
    __repr__ = _swig_repr
    def __init__(self): 
        this = _ufc.new_cell()
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _ufc.delete_cell
    __del__ = lambda self : None;
    __swig_setmethods__["cell_shape"] = _ufc.cell_cell_shape_set
    __swig_getmethods__["cell_shape"] = _ufc.cell_cell_shape_get
    if _newclass:cell_shape = _swig_property(_ufc.cell_cell_shape_get, _ufc.cell_cell_shape_set)
    __swig_setmethods__["topological_dimension"] = _ufc.cell_topological_dimension_set
    __swig_getmethods__["topological_dimension"] = _ufc.cell_topological_dimension_get
    if _newclass:topological_dimension = _swig_property(_ufc.cell_topological_dimension_get, _ufc.cell_topological_dimension_set)
    __swig_setmethods__["geometric_dimension"] = _ufc.cell_geometric_dimension_set
    __swig_getmethods__["geometric_dimension"] = _ufc.cell_geometric_dimension_get
    if _newclass:geometric_dimension = _swig_property(_ufc.cell_geometric_dimension_get, _ufc.cell_geometric_dimension_set)
    __swig_setmethods__["index"] = _ufc.cell_index_set
    __swig_getmethods__["index"] = _ufc.cell_index_get
    if _newclass:index = _swig_property(_ufc.cell_index_get, _ufc.cell_index_set)
    __swig_setmethods__["local_facet"] = _ufc.cell_local_facet_set
    __swig_getmethods__["local_facet"] = _ufc.cell_local_facet_get
    if _newclass:local_facet = _swig_property(_ufc.cell_local_facet_get, _ufc.cell_local_facet_set)
    __swig_setmethods__["mesh_identifier"] = _ufc.cell_mesh_identifier_set
    __swig_getmethods__["mesh_identifier"] = _ufc.cell_mesh_identifier_get
    if _newclass:mesh_identifier = _swig_property(_ufc.cell_mesh_identifier_get, _ufc.cell_mesh_identifier_set)
cell_swigregister = _ufc.cell_swigregister
cell_swigregister(cell)

class function(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, function, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, function, name)
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _ufc.delete_function
    __del__ = lambda self : None;
    def evaluate(self, *args): return _ufc.function_evaluate(self, *args)
function_swigregister = _ufc.function_swigregister
function_swigregister(function)

class finite_element(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, finite_element, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, finite_element, name)
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _ufc.delete_finite_element
    __del__ = lambda self : None;
    def signature(self): return _ufc.finite_element_signature(self)
    def cell_shape(self): return _ufc.finite_element_cell_shape(self)
    def topological_dimension(self): return _ufc.finite_element_topological_dimension(self)
    def geometric_dimension(self): return _ufc.finite_element_geometric_dimension(self)
    def space_dimension(self): return _ufc.finite_element_space_dimension(self)
    def value_rank(self): return _ufc.finite_element_value_rank(self)
    def value_dimension(self, *args): return _ufc.finite_element_value_dimension(self, *args)
    def evaluate_basis(self, *args): return _ufc.finite_element_evaluate_basis(self, *args)
    def evaluate_basis_all(self, *args): return _ufc.finite_element_evaluate_basis_all(self, *args)
    def evaluate_basis_derivatives(self, *args): return _ufc.finite_element_evaluate_basis_derivatives(self, *args)
    def evaluate_basis_derivatives_all(self, *args): return _ufc.finite_element_evaluate_basis_derivatives_all(self, *args)
    def evaluate_dof(self, *args): return _ufc.finite_element_evaluate_dof(self, *args)
    def evaluate_dofs(self, *args): return _ufc.finite_element_evaluate_dofs(self, *args)
    def interpolate_vertex_values(self, *args): return _ufc.finite_element_interpolate_vertex_values(self, *args)
    def map_from_reference_cell(self, *args): return _ufc.finite_element_map_from_reference_cell(self, *args)
    def map_to_reference_cell(self, *args): return _ufc.finite_element_map_to_reference_cell(self, *args)
    def num_sub_elements(self): return _ufc.finite_element_num_sub_elements(self)
    def create_sub_element(self, *args): return _ufc.finite_element_create_sub_element(self, *args)
    def create(self): return _ufc.finite_element_create(self)
finite_element_swigregister = _ufc.finite_element_swigregister
finite_element_swigregister(finite_element)

class dofmap(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, dofmap, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, dofmap, name)
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _ufc.delete_dofmap
    __del__ = lambda self : None;
    def signature(self): return _ufc.dofmap_signature(self)
    def needs_mesh_entities(self, *args): return _ufc.dofmap_needs_mesh_entities(self, *args)
    def init_mesh(self, *args): return _ufc.dofmap_init_mesh(self, *args)
    def init_cell(self, *args): return _ufc.dofmap_init_cell(self, *args)
    def init_cell_finalize(self): return _ufc.dofmap_init_cell_finalize(self)
    def topological_dimension(self): return _ufc.dofmap_topological_dimension(self)
    def geometric_dimension(self): return _ufc.dofmap_geometric_dimension(self)
    def global_dimension(self): return _ufc.dofmap_global_dimension(self)
    def local_dimension(self, *args): return _ufc.dofmap_local_dimension(self, *args)
    def max_local_dimension(self): return _ufc.dofmap_max_local_dimension(self)
    def num_facet_dofs(self): return _ufc.dofmap_num_facet_dofs(self)
    def num_entity_dofs(self, *args): return _ufc.dofmap_num_entity_dofs(self, *args)
    def tabulate_dofs(self, *args): return _ufc.dofmap_tabulate_dofs(self, *args)
    def tabulate_facet_dofs(self, *args): return _ufc.dofmap_tabulate_facet_dofs(self, *args)
    def tabulate_entity_dofs(self, *args): return _ufc.dofmap_tabulate_entity_dofs(self, *args)
    def tabulate_coordinates(self, *args): return _ufc.dofmap_tabulate_coordinates(self, *args)
    def num_sub_dofmaps(self): return _ufc.dofmap_num_sub_dofmaps(self)
    def create_sub_dofmap(self, *args): return _ufc.dofmap_create_sub_dofmap(self, *args)
    def create(self): return _ufc.dofmap_create(self)
dofmap_swigregister = _ufc.dofmap_swigregister
dofmap_swigregister(dofmap)

class cell_integral(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, cell_integral, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, cell_integral, name)
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _ufc.delete_cell_integral
    __del__ = lambda self : None;
    def tabulate_tensor(self, *args): return _ufc.cell_integral_tabulate_tensor(self, *args)
cell_integral_swigregister = _ufc.cell_integral_swigregister
cell_integral_swigregister(cell_integral)

class exterior_facet_integral(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, exterior_facet_integral, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, exterior_facet_integral, name)
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _ufc.delete_exterior_facet_integral
    __del__ = lambda self : None;
    def tabulate_tensor(self, *args): return _ufc.exterior_facet_integral_tabulate_tensor(self, *args)
exterior_facet_integral_swigregister = _ufc.exterior_facet_integral_swigregister
exterior_facet_integral_swigregister(exterior_facet_integral)

class interior_facet_integral(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, interior_facet_integral, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, interior_facet_integral, name)
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _ufc.delete_interior_facet_integral
    __del__ = lambda self : None;
    def tabulate_tensor(self, *args): return _ufc.interior_facet_integral_tabulate_tensor(self, *args)
interior_facet_integral_swigregister = _ufc.interior_facet_integral_swigregister
interior_facet_integral_swigregister(interior_facet_integral)

class form(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, form, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, form, name)
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _ufc.delete_form
    __del__ = lambda self : None;
    def signature(self): return _ufc.form_signature(self)
    def rank(self): return _ufc.form_rank(self)
    def num_coefficients(self): return _ufc.form_num_coefficients(self)
    def num_cell_domains(self): return _ufc.form_num_cell_domains(self)
    def num_exterior_facet_domains(self): return _ufc.form_num_exterior_facet_domains(self)
    def num_interior_facet_domains(self): return _ufc.form_num_interior_facet_domains(self)
    def create_finite_element(self, *args): return _ufc.form_create_finite_element(self, *args)
    def create_dofmap(self, *args): return _ufc.form_create_dofmap(self, *args)
    def create_cell_integral(self, *args): return _ufc.form_create_cell_integral(self, *args)
    def create_exterior_facet_integral(self, *args): return _ufc.form_create_exterior_facet_integral(self, *args)
    def create_interior_facet_integral(self, *args): return _ufc.form_create_interior_facet_integral(self, *args)
form_swigregister = _ufc.form_swigregister
form_swigregister(form)


def ufc_swigversion():
  return _ufc.ufc_swigversion()
ufc_swigversion = _ufc.ufc_swigversion
__version__ = UFC_VERSION
del UFC_VERSION, UFC_VERSION_MAJOR, UFC_VERSION_MINOR

"""Code for adding swig version to ufc extension module."""
tmp = hex(ufc_swigversion())
__swigversion__ = "%d.%d.%d"%(tuple(map(int, [tmp[-5], tmp[-3], tmp[-2:]])))

del tmp, ufc_swigversion

# This file is compatible with both classic and new-style classes.