Skip to content

Commit

Permalink
Merge branch 'latent_heat' into 'master'
Browse files Browse the repository at this point in the history
[MPL] make LinearWaterVapourLatentHeat accessible to TH2M

See merge request ogs/ogs!4823
  • Loading branch information
endJunction committed Nov 27, 2023
2 parents 74b394f + 4346810 commit 46b0198
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 46b0198

Please sign in to comment.