Skip to content

Expressions as Functions API #148

@ratnania

Description

@ratnania

Up to now, we were allowing expression (using the coordinates) to be passed directly in the weak formulation.
We encountered two major problems with this approach

  • sometimes an error is raised because we cannot check the linearity/bilinearity of a form.
  • it may make the code very slow

This issue aims at allowing the definition of a Function, as a container, for two major uses;

  • by providing its symbolic expression. example,
F = Function((x,y), x**2+y**2)

in which case, F will not appear as a free-variable, and its expression will be provided in TerminalExpr like in the valued Constant case.

  • by providing its actual implementation, meaning, providing a Python code. In this case, the code must be pyccelized first to check that it can be used in our pipeline with psydac.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions