Skip to content

Making use of state to accelerate calls like energy_forces or calculate((Energy(), Forces()), ...) in default implementation #27

Open
@mfherbst

Description

@mfherbst

The default implementation of calls like energy_forces or calculate((Energy(), Forces()) do not allow us to make use of a state in DFTK to reduce the computational burden on the second call (force computation). This should be done in the default implementation automatically. Essentially I suggest:

  • Calls like energy_forces should dispatch to the low-level interface (calculate((Energy(), Forces()) )
  • The implementation of calculate(::Tuple ) should transfer the state when dealing with one tuple element to the calculate call when dealing with the next.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions