mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
linear material law limited to the range 0 - 1
This commit is contained in:
committed by
Andreas Lauser
parent
6e189635af
commit
dd6c3fdb10
@@ -103,7 +103,7 @@ public:
|
||||
*/
|
||||
static Scalar krw(const Params ¶ms, Scalar Swe)
|
||||
{
|
||||
return Swe;
|
||||
return std::max(std::min(Swe,1.0),0.0);
|
||||
};
|
||||
|
||||
/*!
|
||||
@@ -114,7 +114,7 @@ public:
|
||||
static Scalar krn(const Params ¶ms, Scalar Swe)
|
||||
{
|
||||
Scalar Sne = 1 - Swe;
|
||||
return Sne;
|
||||
return std::max(std::min(Sne,1.0),0.0);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user