Skip to content

Caching pattern globally not on instances. #3160

@will-saunders-ukaea

Description

@will-saunders-ukaea

I was browsing the mesh implementation to get a better understanding of how it works. I see patterns like [1] which look like they cache instance specific values globally across the entire program. See [2] for example. Maybe I am missing something or have parsed this C++ wrong or maybe you only have one mesh instance per program execution and never hit an issue?

[1]

static bool calc = false, answer;

[2] https://godbolt.org/z/x8h5onMqs

Will

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