/usr/lib/python2.7/dist-packages/ffc/backends/dolfin/includes.py is in python-ffc 1.4.0-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 | # Based on original implementation by Martin Alnes and Anders Logg
__all__ = ["dolfin_tag", "stl_includes", "dolfin_includes", "snippets"]
dolfin_tag = "// DOLFIN wrappers"
stl_includes = """\
// Standard library includes
#include <string>
"""
dolfin_includes = """\
// DOLFIN includes
#include <dolfin/common/NoDeleter.h>
#include <dolfin/mesh/Restriction.h>
#include <dolfin/fem/FiniteElement.h>
#include <dolfin/fem/DofMap.h>
#include <dolfin/fem/Form.h>
#include <dolfin/function/FunctionSpace.h>
#include <dolfin/function/GenericFunction.h>
#include <dolfin/function/CoefficientAssigner.h>
#include <dolfin/adaptivity/ErrorControl.h>
#include <dolfin/adaptivity/GoalFunctional.h>"""
#-------------------------------------------------------------------------------
snippets = {"shared_ptr_space":
("std::shared_ptr<const dolfin::FunctionSpace> %s",
" _function_spaces[%d] = %s;"),
"referenced_space":
("const dolfin::FunctionSpace& %s",
" _function_spaces[%d] = reference_to_no_delete_pointer(%s);"),
"shared_ptr_mesh":
("std::shared_ptr<const dolfin::Mesh> mesh",
" _mesh = mesh;"),
"referenced_mesh":
("const dolfin::Mesh& mesh",
" _mesh = reference_to_no_delete_pointer(mesh);"),
"shared_ptr_coefficient":
("std::shared_ptr<const dolfin::GenericFunction> %s",
" this->%s = *%s;"),
"referenced_coefficient":
("const dolfin::GenericFunction& %s",
" this->%s = %s;"),
"functionspace":
("TestSpace", "TrialSpace")
}
#-------------------------------------------------------------------------------
|