Skip to content

Commit

Permalink
[MPL] make LinearWaterVapourLatentHeat accessible for TH2M
Browse files Browse the repository at this point in the history
  • Loading branch information
joergbuchwald committed Nov 27, 2023
1 parent 74b394f commit 4346810
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ class LinearWaterVapourLatentHeat final : public Property

void checkScale() const override
{
if (!std::holds_alternative<Phase*>(scale_))
if (!(std::holds_alternative<Phase*>(scale_) ||
std::holds_alternative<Component*>(scale_)))
{
OGS_FATAL(
"The property 'LinearWaterVapourLatentHeat' is "
"implemented on the 'phase' scale only.");
"implemented on the 'phase' and 'component' scale only.");
}
}

Expand Down

0 comments on commit 4346810

Please sign in to comment.