mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
multiphase adaption criterion: some improvements
now all phases are considered and a potential division by zero (if all the saturations of a phase are zero) is avoided.
This commit is contained in:
parent
408afe74fe
commit
5de508135a
@ -372,7 +372,6 @@ public:
|
|||||||
void endTimeStep()
|
void endTimeStep()
|
||||||
{
|
{
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
/*
|
|
||||||
this->model().checkConservativeness();
|
this->model().checkConservativeness();
|
||||||
|
|
||||||
// Calculate storage terms
|
// Calculate storage terms
|
||||||
@ -383,7 +382,6 @@ public:
|
|||||||
if (this->gridView().comm().rank() == 0) {
|
if (this->gridView().comm().rank() == 0) {
|
||||||
std::cout << "Storage: " << storage << std::endl << std::flush;
|
std::cout << "Storage: " << storage << std::endl << std::flush;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
#endif // NDEBUG
|
#endif // NDEBUG
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user