PageRenderTime 26ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/ffc/backends/ufc/__init__.py

https://bitbucket.org/mapdes/ffc
Python | 78 lines | 64 code | 0 blank | 14 comment | 0 complexity | 0396813f8ba534b7a492d56b8d7a21c6 MD5 | raw file
  1. # -*- coding: utf-8 -*-
  2. """Code generation format strings for UFC (Unified Form-assembly Code) v. 1.7.0dev
  3. Three format strings are defined for each of the following UFC classes:
  4. function
  5. finite_element
  6. dofmap
  7. domain
  8. cell_integral
  9. exterior_facet_integral
  10. interior_facet_integral
  11. form
  12. The strings are named '<classname>_header', '<classname>_implementation',
  13. and '<classname>_combined'. The header and implementation contain the
  14. definition and declaration respectively, and are meant to be placed in
  15. .h and .cpp files, while the combined version is for an implementation
  16. within a single .h header.
  17. Each string has the following format variables: 'classname',
  18. 'members', 'constructor', 'destructor', plus one for each interface
  19. function with name equal to the function name.
  20. For more information about UFC and the FEniCS Project, visit
  21. http://www.fenicsproject.org
  22. https://bitbucket.org/fenics-project/ufc
  23. """
  24. __author__ = "Martin Sandve Alnæs, Anders Logg, Kent-Andre Mardal, Ola Skavhaug, and Hans Petter Langtangen"
  25. __date__ = "2015-10-21"
  26. __version__ = "1.7.0dev"
  27. __license__ = "This code is released into the public domain"
  28. from .function import *
  29. from .finite_element import *
  30. from .dofmap import *
  31. from .coordinate_mapping import *
  32. from .integrals import *
  33. from .form import *
  34. from .factory import *
  35. from .build import build_ufc_module
  36. templates = {"function_header": function_header,
  37. "function_implementation": function_implementation,
  38. "function_combined": function_combined,
  39. "finite_element_header": finite_element_header,
  40. "finite_element_implementation": finite_element_implementation,
  41. "finite_element_combined": finite_element_combined,
  42. "dofmap_header": dofmap_header,
  43. "dofmap_implementation": dofmap_implementation,
  44. "dofmap_combined": dofmap_combined,
  45. "coordinate_mapping_header": coordinate_mapping_header,
  46. "coordinate_mapping_implementation": coordinate_mapping_implementation,
  47. "coordinate_mapping_combined": coordinate_mapping_combined,
  48. "cell_integral_header": cell_integral_header,
  49. "cell_integral_implementation": cell_integral_implementation,
  50. "cell_integral_combined": cell_integral_combined,
  51. "exterior_facet_integral_header": exterior_facet_integral_header,
  52. "exterior_facet_integral_implementation": exterior_facet_integral_implementation,
  53. "exterior_facet_integral_combined": exterior_facet_integral_combined,
  54. "interior_facet_integral_header": interior_facet_integral_header,
  55. "interior_facet_integral_implementation": interior_facet_integral_implementation,
  56. "interior_facet_integral_combined": interior_facet_integral_combined,
  57. "vertex_integral_header": vertex_integral_header,
  58. "vertex_integral_implementation": vertex_integral_implementation,
  59. "vertex_integral_combined": vertex_integral_combined,
  60. "custom_integral_header": custom_integral_header,
  61. "custom_integral_implementation": custom_integral_implementation,
  62. "custom_integral_combined": custom_integral_combined,
  63. "form_header": form_header,
  64. "form_implementation": form_implementation,
  65. "form_combined": form_combined,
  66. "factory_header": factory_header,
  67. "factory_implementation": factory_implementation,
  68. }