Commit 278216ee authored by Timo Koch's avatar Timo Koch
Browse files

[richards][iofields] Do not require moleFraction interface for regular model

parent 793d5ee7
......@@ -68,7 +68,7 @@ public:
if(gravity)
out.addVolumeVariable([](const auto& v){ return v.pressureHead(FS::liquidPhaseIdx); },
IOName::pressureHead());
if (enableWaterDiffusionInAir)
if constexpr (enableWaterDiffusionInAir)
out.addVolumeVariable([](const auto& v){ return v.moleFraction(FS::gasPhaseIdx, FS::liquidCompIdx); },
IOName::moleFraction<FS>(FS::gasPhaseIdx, FS::liquidCompIdx));
out.addVolumeVariable([](const auto& v){ return v.waterContent(FS::liquidPhaseIdx); },
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment