This file is indexed.

/usr/lib/python2.7/dist-packages/ufc/ufc.py is in python-ffc 1.6.0-2.

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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.7
#
# 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 >= (3, 0, 0):
    new_instancemethod = lambda func, inst, cls: _ufc.SWIG_PyInstanceMethod_New(func)
else:
    from new import instancemethod as new_instancemethod
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):
        object.__setattr__(self, 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_nondynamic(self, class_type, name, static=1):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    if (not static):
        return object.__getattr__(self, name)
    else:
        raise AttributeError(name)

def _swig_getattr(self, class_type, name):
    return _swig_getattr_nondynamic(self, class_type, name, 0)


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



def _swig_setattr_nondynamic_method(set):
    def set_attr(self, name, value):
        if (name == "thisown"):
            return self.this.own(value)
        if hasattr(self, name) or (name == "this"):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add attributes to %s" % self)
    return set_attr



_ufc.SHARED_PTR_DISOWN_swigconstant(_ufc)
SHARED_PTR_DISOWN = _ufc.SHARED_PTR_DISOWN

_ufc.UFC_VERSION_MAJOR_swigconstant(_ufc)
UFC_VERSION_MAJOR = _ufc.UFC_VERSION_MAJOR

_ufc.UFC_VERSION_MINOR_swigconstant(_ufc)
UFC_VERSION_MINOR = _ufc.UFC_VERSION_MINOR

_ufc.UFC_VERSION_MAINTENANCE_swigconstant(_ufc)
UFC_VERSION_MAINTENANCE = _ufc.UFC_VERSION_MAINTENANCE

_ufc.UFC_VERSION_RELEASE_swigconstant(_ufc)
UFC_VERSION_RELEASE = _ufc.UFC_VERSION_RELEASE

_ufc.interval_swigconstant(_ufc)
interval = _ufc.interval

_ufc.triangle_swigconstant(_ufc)
triangle = _ufc.triangle

_ufc.quadrilateral_swigconstant(_ufc)
quadrilateral = _ufc.quadrilateral

_ufc.tetrahedron_swigconstant(_ufc)
tetrahedron = _ufc.tetrahedron

_ufc.hexahedron_swigconstant(_ufc)
hexahedron = _ufc.hexahedron
class cell(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr

    def __init__(self):
        _ufc.cell_swiginit(self, _ufc.new_cell())
    __swig_destroy__ = _ufc.delete_cell
    cell_shape = _swig_property(_ufc.cell_cell_shape_get, _ufc.cell_cell_shape_set)
    topological_dimension = _swig_property(_ufc.cell_topological_dimension_get, _ufc.cell_topological_dimension_set)
    geometric_dimension = _swig_property(_ufc.cell_geometric_dimension_get, _ufc.cell_geometric_dimension_set)
    index = _swig_property(_ufc.cell_index_get, _ufc.cell_index_set)
    local_facet = _swig_property(_ufc.cell_local_facet_get, _ufc.cell_local_facet_set)
    orientation = _swig_property(_ufc.cell_orientation_get, _ufc.cell_orientation_set)
    mesh_identifier = _swig_property(_ufc.cell_mesh_identifier_get, _ufc.cell_mesh_identifier_set)
cell_swigregister = _ufc.cell_swigregister
cell_swigregister(cell)
cvar = _ufc.cvar
UFC_VERSION = cvar.UFC_VERSION

class function(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _ufc.delete_function
function.evaluate = new_instancemethod(_ufc.function_evaluate, None, function)
function_swigregister = _ufc.function_swigregister
function_swigregister(function)

class finite_element(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')

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

class dofmap(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _ufc.delete_dofmap
dofmap.signature = new_instancemethod(_ufc.dofmap_signature, None, dofmap)
dofmap.needs_mesh_entities = new_instancemethod(_ufc.dofmap_needs_mesh_entities, None, dofmap)
dofmap.topological_dimension = new_instancemethod(_ufc.dofmap_topological_dimension, None, dofmap)
dofmap.geometric_dimension = new_instancemethod(_ufc.dofmap_geometric_dimension, None, dofmap)
dofmap.global_dimension = new_instancemethod(_ufc.dofmap_global_dimension, None, dofmap)
dofmap.num_element_dofs = new_instancemethod(_ufc.dofmap_num_element_dofs, None, dofmap)
dofmap.num_facet_dofs = new_instancemethod(_ufc.dofmap_num_facet_dofs, None, dofmap)
dofmap.num_entity_dofs = new_instancemethod(_ufc.dofmap_num_entity_dofs, None, dofmap)
dofmap.tabulate_dofs = new_instancemethod(_ufc.dofmap_tabulate_dofs, None, dofmap)
dofmap.tabulate_facet_dofs = new_instancemethod(_ufc.dofmap_tabulate_facet_dofs, None, dofmap)
dofmap.tabulate_entity_dofs = new_instancemethod(_ufc.dofmap_tabulate_entity_dofs, None, dofmap)
dofmap.tabulate_coordinates = new_instancemethod(_ufc.dofmap_tabulate_coordinates, None, dofmap)
dofmap.num_sub_dofmaps = new_instancemethod(_ufc.dofmap_num_sub_dofmaps, None, dofmap)
dofmap.create_sub_dofmap = new_instancemethod(_ufc.dofmap_create_sub_dofmap, None, dofmap)
dofmap.create = new_instancemethod(_ufc.dofmap_create, None, dofmap)
dofmap_swigregister = _ufc.dofmap_swigregister
dofmap_swigregister(dofmap)

class integral(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _ufc.delete_integral
integral.enabled_coefficients = new_instancemethod(_ufc.integral_enabled_coefficients, None, integral)
integral_swigregister = _ufc.integral_swigregister
integral_swigregister(integral)

class cell_integral(integral):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _ufc.delete_cell_integral
cell_integral.tabulate_tensor = new_instancemethod(_ufc.cell_integral_tabulate_tensor, None, cell_integral)
cell_integral_swigregister = _ufc.cell_integral_swigregister
cell_integral_swigregister(cell_integral)

class exterior_facet_integral(integral):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _ufc.delete_exterior_facet_integral
exterior_facet_integral.tabulate_tensor = new_instancemethod(_ufc.exterior_facet_integral_tabulate_tensor, None, exterior_facet_integral)
exterior_facet_integral_swigregister = _ufc.exterior_facet_integral_swigregister
exterior_facet_integral_swigregister(exterior_facet_integral)

class interior_facet_integral(integral):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _ufc.delete_interior_facet_integral
interior_facet_integral.tabulate_tensor = new_instancemethod(_ufc.interior_facet_integral_tabulate_tensor, None, interior_facet_integral)
interior_facet_integral_swigregister = _ufc.interior_facet_integral_swigregister
interior_facet_integral_swigregister(interior_facet_integral)

class vertex_integral(integral):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _ufc.delete_vertex_integral
vertex_integral.tabulate_tensor = new_instancemethod(_ufc.vertex_integral_tabulate_tensor, None, vertex_integral)
vertex_integral_swigregister = _ufc.vertex_integral_swigregister
vertex_integral_swigregister(vertex_integral)

class custom_integral(integral):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _ufc.delete_custom_integral
custom_integral.num_cells = new_instancemethod(_ufc.custom_integral_num_cells, None, custom_integral)
custom_integral.tabulate_tensor = new_instancemethod(_ufc.custom_integral_tabulate_tensor, None, custom_integral)
custom_integral_swigregister = _ufc.custom_integral_swigregister
custom_integral_swigregister(custom_integral)

class form(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _ufc.delete_form
form.signature = new_instancemethod(_ufc.form_signature, None, form)
form.rank = new_instancemethod(_ufc.form_rank, None, form)
form.num_coefficients = new_instancemethod(_ufc.form_num_coefficients, None, form)
form.original_coefficient_position = new_instancemethod(_ufc.form_original_coefficient_position, None, form)
form.create_finite_element = new_instancemethod(_ufc.form_create_finite_element, None, form)
form.create_dofmap = new_instancemethod(_ufc.form_create_dofmap, None, form)
form.max_cell_subdomain_id = new_instancemethod(_ufc.form_max_cell_subdomain_id, None, form)
form.max_exterior_facet_subdomain_id = new_instancemethod(_ufc.form_max_exterior_facet_subdomain_id, None, form)
form.max_interior_facet_subdomain_id = new_instancemethod(_ufc.form_max_interior_facet_subdomain_id, None, form)
form.max_vertex_subdomain_id = new_instancemethod(_ufc.form_max_vertex_subdomain_id, None, form)
form.max_custom_subdomain_id = new_instancemethod(_ufc.form_max_custom_subdomain_id, None, form)
form.has_cell_integrals = new_instancemethod(_ufc.form_has_cell_integrals, None, form)
form.has_exterior_facet_integrals = new_instancemethod(_ufc.form_has_exterior_facet_integrals, None, form)
form.has_interior_facet_integrals = new_instancemethod(_ufc.form_has_interior_facet_integrals, None, form)
form.has_vertex_integrals = new_instancemethod(_ufc.form_has_vertex_integrals, None, form)
form.has_custom_integrals = new_instancemethod(_ufc.form_has_custom_integrals, None, form)
form.create_cell_integral = new_instancemethod(_ufc.form_create_cell_integral, None, form)
form.create_exterior_facet_integral = new_instancemethod(_ufc.form_create_exterior_facet_integral, None, form)
form.create_interior_facet_integral = new_instancemethod(_ufc.form_create_interior_facet_integral, None, form)
form.create_vertex_integral = new_instancemethod(_ufc.form_create_vertex_integral, None, form)
form.create_custom_integral = new_instancemethod(_ufc.form_create_custom_integral, None, form)
form.create_default_cell_integral = new_instancemethod(_ufc.form_create_default_cell_integral, None, form)
form.create_default_exterior_facet_integral = new_instancemethod(_ufc.form_create_default_exterior_facet_integral, None, form)
form.create_default_interior_facet_integral = new_instancemethod(_ufc.form_create_default_interior_facet_integral, None, form)
form.create_default_vertex_integral = new_instancemethod(_ufc.form_create_default_vertex_integral, None, form)
form.create_default_custom_integral = new_instancemethod(_ufc.form_create_default_custom_integral, None, form)
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, UFC_VERSION_MAINTENANCE, UFC_VERSION_RELEASE

"""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