FEniCS / FEniCS/ufl

CoordinateDerivative and Conj do not compose correctly.

Open
#21 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
150
Forks
79
Avg merge
1d 16h
Merged PRs (30d)
10

Description

suppose in a complex valued inverse problem we have:
```python

x = SpatialCoordinate(mesh)
functional = f(x)*dx
```
where `f(x)` is some UFL expression which might be a function of x. Now, the adjoint will need to compute:
```python

conj(derivative(functional, mesh)
```
Which is currently an error since `CoordinateDerivative` must be the outermost operator on any expression. If we push the `conj` inside the derivative then this is also an error because then the conjugate is not applied to the `det(J)` which results from integral scaling. In combination with the `CoordinateDerivative` this causes unconjugated test functions, which is an error.

Answers on a postcard please.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.