Skip to content

Inconsistent Allen-Cahn problems #434

Open
@brownbaerchen

Description

@brownbaerchen

There are many versions of Allen-Cahn implemented in pySDC. Mostly, they solve the same equation, but differ only in dimensionality or the solver. However, there are some subtle differences that can lead to bugs. Comparing for instance the 2D FD and 2D MPIFFT implementations, we find the FD version has a grid [-0.5, 0.5]^2 and the MPIFFT version has a grid [0, 1]^2. Also, the FD version has phases $\pm 0.5$, with the other one having phases $0$ and $1$. I noticed this when trying to use a hook for computing the radius designed for the FD version on the FFT one.

Are there any reasons for these discrepancies? Do they matter in practice? If not, I suggest we streamline this at some point.

Also, we can unify the GPU and CPU versions of the FD implementation and change to the work counters there in the process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueIf you want to start developping pySDC, this is a good place to start

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions