Compare commits

...

5 Commits

Author SHA1 Message Date
Arne Morten Kvarving
2f34e58fa4 bump packaging versions for 2016.10 release 2016-11-01 09:35:47 +01:00
Arne Morten Kvarving
899c0324c4 bump packaging versions for 2016.10-rc2 2016-10-28 14:50:24 +02:00
Atgeirr Flø Rasmussen
4daff8eb7e Fix saturation family diagnostics for two-phase case. 2016-10-28 11:42:40 +02:00
Arne Morten Kvarving
382aeb9d3a bump packaging versions for 2016.10-rc1 2016-10-26 11:30:09 +02:00
Arne Morten Kvarving
88bf2a6a1c bump version for 2016.10 2016-10-26 11:29:41 +02:00
4 changed files with 33 additions and 7 deletions

6
debian/changelog vendored
View File

@@ -1,3 +1,9 @@
opm-core (2016.10-rfinal-1~xenial) xenial; urgency=medium
* New release
-- Arne Morten Kvarving <arne.morten.kvarving@sintef.no> Wed, 26 Oct 2016 11:29:46 +0200
opm-core (2013.10-2~precise) precise; urgency=low
* New release

View File

@@ -5,8 +5,8 @@
Module: opm-core
Description: Open Porous Media Initiative Core Library
Version: 2016.10-pre
Label: 2016.10-pre
Version: 2016.10
Label: 2016.10
Maintainer: atgeirr@sintef.no
MaintainerName: Atgeirr F. Rasmussen
Url: http://opm-project.org

View File

@@ -18,6 +18,7 @@
*/
#include <opm/core/props/satfunc/RelpermDiagnostics.hpp>
#include <opm/core/props/phaseUsageFromDeck.hpp>
#include <opm/material/fluidmatrixinteractions/EclEpsScalingPoints.hpp>
#include <opm/parser/eclipse/EclipseState/Tables/Sof2Table.hpp>
#include <opm/parser/eclipse/EclipseState/Tables/SgwfnTable.hpp>
@@ -64,6 +65,8 @@ namespace Opm{
void RelpermDiagnostics::satFamilyCheck_(const Opm::EclipseState& eclState)
{
const PhaseUsage pu = phaseUsageFromDeck(eclState);
const auto& tableManager = eclState.getTableManager();
const TableContainer& swofTables = tableManager.getSwofTables();
const TableContainer& slgofTables= tableManager.getSlgofTables();
@@ -74,9 +77,26 @@ namespace Opm{
const TableContainer& sof2Tables = tableManager.getSof2Tables();
const TableContainer& sgwfnTables= tableManager.getSgwfnTables();
bool family1 = (!sgofTables.empty() || !slgofTables.empty()) && !swofTables.empty();
bool family2 = ((!swfnTables.empty() && !sgfnTables.empty()) || !sgwfnTables.empty()) && (!sof3Tables.empty() || !sof2Tables.empty());
// Family I test.
bool family1 = pu.phase_used[BlackoilPhases::Liquid];
if (pu.phase_used[BlackoilPhases::Aqua]) {
family1 = family1 && !swofTables.empty();
}
if (pu.phase_used[BlackoilPhases::Vapour]) {
family1 = family1 && (!sgofTables.empty() || !slgofTables.empty());
}
// Family II test.
bool family2 = true;
if (pu.phase_used[BlackoilPhases::Aqua]) {
family2 = family2 && (!swfnTables.empty() || !sgwfnTables.empty());
}
if (pu.phase_used[BlackoilPhases::Liquid]) {
family2 = family2 && (!sof3Tables.empty() || !sof2Tables.empty());
}
if (pu.phase_used[BlackoilPhases::Vapour]) {
family2 = family2 && (!sgfnTables.empty() || !sgwfnTables.empty());
}
if (family1 && family2) {
const std::string msg = "Saturation families should not be mixed.\n Use either SGOF and SWOF or SGFN, SWFN and SOF3.";

View File

@@ -2,10 +2,10 @@
# spec file for package opm-core
#
%define tag rc3
%define tag final
Name: opm-core
Version: 2013.10
Version: 2016.10
Release: 0
Summary: Open Porous Media - core library
License: GPL-3.0