Skip to content

Implement a generic version for set_zero! #1818

@bennibolm

Description

@bennibolm

I might be useful to implement a generic version of set_zero!.
Right now, it is used in different places to reset arrays (also others than du), thread-parallelized for the last entry.

E.g. in

    # TODO: Do not abuse `reset_du!` but maybe implement a generic `set_zero!`
    @trixi_timeit timer() "reset alpha" reset_du!(alpha, dg, semi.cache)

Originally posted by @sloede in #1736 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions