Skip to content

Unique Function Arguments for TRM Constitutive Settings

Christoph Lehmann requested to merge chleh/ogs:trm-prev-states into master

Future changes to TRM's constitutive setting code will require that all method arguments of the constitutive settings have unique types. This MR meets that future requirement.

This MR does two things:

  1. Introduces PrevState<T> to distinguish current and previous states of a physical quantity on the type level.
  2. Adds functions to check (at compile time) that method argument types are unique.

If you prefer it, I can split the MR into two.

The introduced code (PrevState, uniqueness check) is not yet at its final location. I just put it into ProcessLib/TRM, where I found it convenient.

  1. Feature description was added to the changelog
  2. Tests covering your feature were added?
  3. Any new feature or behavior change was documented?

Merge request reports