Compare commits
9 Commits
release/20
...
release/20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
828fe797f0 | ||
|
|
8f24032612 | ||
|
|
ee6bfbd76f | ||
|
|
54ee583112 | ||
|
|
b69010cfc9 | ||
|
|
2859980cb4 | ||
|
|
3ffefd8098 | ||
|
|
852fdd7ac4 | ||
|
|
47a43daeac |
2
debian/changelog
vendored
2
debian/changelog
vendored
@@ -1,4 +1,4 @@
|
||||
opm-common (2019.04-pre~xenial) xenial; urgency=medium
|
||||
opm-common (2019.04-rc2-1~xenial) xenial; urgency=medium
|
||||
|
||||
* New release
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
|
||||
Module: opm-common
|
||||
Description: Open Porous Media Initiative shared infrastructure
|
||||
Version: 2019.04-pre
|
||||
Label: 2019.04-pre
|
||||
Version: 2019.04-rc2
|
||||
Label: 2019.04-rc2
|
||||
Maintainer: opm@opm-project.org
|
||||
MaintainerName: OPM community
|
||||
Url: http://opm-project.org
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <opm/msim/msim.hpp>
|
||||
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
int main(int /* argc */, char** argv) {
|
||||
std::string deck_file = argv[1];
|
||||
Opm::Parser parser;
|
||||
Opm::ParseContext parse_context;
|
||||
|
||||
@@ -51,7 +51,7 @@ void msim::run(Schedule& schedule, EclipseIO& io) {
|
||||
}
|
||||
|
||||
|
||||
void msim::post_step(Schedule& schedule, data::Solution& sol, data::Wells& well_data, size_t report_step, EclipseIO& io) const {
|
||||
void msim::post_step(Schedule& schedule, data::Solution& /* sol */, data::Wells& /* well_data */, size_t report_step, EclipseIO& io) const {
|
||||
const auto& actions = schedule.actions();
|
||||
if (actions.empty())
|
||||
return;
|
||||
@@ -98,7 +98,7 @@ void msim::run_step(const Schedule& schedule, data::Solution& sol, data::Wells&
|
||||
|
||||
|
||||
|
||||
void msim::output(size_t report_step, bool substep, double seconds_elapsed, const data::Solution& sol, const data::Wells& well_data, EclipseIO& io) const {
|
||||
void msim::output(size_t report_step, bool /* substep */, double seconds_elapsed, const data::Solution& sol, const data::Wells& well_data, EclipseIO& io) const {
|
||||
RestartValue value(sol, well_data);
|
||||
io.writeTimeStep(report_step,
|
||||
false,
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
# spec file for package opm-common
|
||||
#
|
||||
|
||||
%define tag final
|
||||
%define tag rc2
|
||||
|
||||
Name: opm-common
|
||||
Version: 2018.10
|
||||
Version: 2019.04
|
||||
Release: 0
|
||||
Summary: Open Porous Media - common helpers and buildsystem
|
||||
License: GPL-3.0
|
||||
|
||||
@@ -53,9 +53,9 @@ namespace {
|
||||
return inteHead[19];
|
||||
}
|
||||
|
||||
const int groupType(const Opm::Schedule& sched,
|
||||
int groupType(const Opm::Schedule& sched,
|
||||
const Opm::Group& group,
|
||||
const std::size_t simStep)
|
||||
const std::size_t simStep)
|
||||
{
|
||||
const std::string& groupName = group.name();
|
||||
if (!sched.hasGroup(groupName))
|
||||
@@ -118,7 +118,7 @@ namespace {
|
||||
return groupIndexMap;
|
||||
}
|
||||
|
||||
const int currentGroupLevel(const Opm::Schedule& sched, const Opm::Group& group, const size_t simStep)
|
||||
int currentGroupLevel(const Opm::Schedule& sched, const Opm::Group& group, const size_t simStep)
|
||||
{
|
||||
int level = 0;
|
||||
const std::vector< const Opm::Group* > groups = sched.getGroups(simStep);
|
||||
@@ -462,8 +462,8 @@ namespace {
|
||||
void
|
||||
Opm::RestartIO::Helpers::groupMaps::
|
||||
currentGrpTreeNameSeqIndMap(const Opm::Schedule& sched,
|
||||
const size_t simStep,
|
||||
const std::map<const std::string , size_t>& GnIMap,
|
||||
const size_t simStep,
|
||||
const std::map<const std::string , size_t>& /* GnIMap */,
|
||||
const std::map<size_t, const Opm::Group*>& IGMap)
|
||||
{
|
||||
const auto& grpTreeNSIMap = (sched.getGroupTree(simStep)).nameSeqIndMap();
|
||||
@@ -545,7 +545,7 @@ captureDeclaredGroupData(const Opm::Schedule& sched,
|
||||
|
||||
// Define Static Contributions to SGrp Array.
|
||||
groupLoop(curGroups,
|
||||
[this](const Group& group, const std::size_t groupID) -> void
|
||||
[this](const Group& /* group */, const std::size_t groupID) -> void
|
||||
{
|
||||
auto sw = this->sGroup_[groupID];
|
||||
SGrp::staticContrib(sw);
|
||||
|
||||
@@ -207,10 +207,18 @@ namespace {
|
||||
const auto& segNo = openConnections[connID]->segment();
|
||||
const auto& segInd = segSet.segmentNumberToIndex(segNo);
|
||||
const auto& Q = rateConns[connID].rates;
|
||||
qosc[segInd] += -units.from_si(M::liquid_surface_rate, Q.get(R::oil));
|
||||
qwsc[segInd] += -units.from_si(M::liquid_surface_rate, Q.get(R::wat));
|
||||
qgsc[segInd] += -units.from_si(M::gas_surface_rate, Q.get(R::gas));
|
||||
|
||||
auto get = [&units, &Q](const M u, const R q) -> double
|
||||
{
|
||||
const auto val = Q.has(q) ? Q.get(q) : 0.0;
|
||||
|
||||
return - units.from_si(u, val);
|
||||
};
|
||||
|
||||
qosc[segInd] += get(M::liquid_surface_rate, R::oil);
|
||||
qwsc[segInd] += get(M::liquid_surface_rate, R::wat);
|
||||
qgsc[segInd] += get(M::gas_surface_rate, R::gas);
|
||||
|
||||
}
|
||||
|
||||
return {
|
||||
@@ -416,7 +424,7 @@ namespace {
|
||||
void staticContrib(const Opm::Well& well,
|
||||
const std::size_t rptStep,
|
||||
const std::vector<int>& inteHead,
|
||||
const Opm::EclipseGrid& grid,
|
||||
const Opm::EclipseGrid& /* grid */,
|
||||
ISegArray& iSeg
|
||||
)
|
||||
{
|
||||
|
||||
@@ -265,7 +265,7 @@ namespace {
|
||||
const std::size_t msWellID,
|
||||
const std::map <const std::string, size_t>& GroupMapNameInd,
|
||||
/*const std::vector<std::string>& groupNames,*/
|
||||
const int maxGroups,
|
||||
const int /* maxGroups */,
|
||||
const std::size_t sim_step,
|
||||
IWellArray& iWell)
|
||||
{
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace {
|
||||
{
|
||||
const auto nWells = sched.numWells();
|
||||
|
||||
if (nWells > static_cast<decltype(nWells)>(wdims.maxWellsInField()))
|
||||
if (nWells > std::size_t(wdims.maxWellsInField()))
|
||||
{
|
||||
std::ostringstream os;
|
||||
os << "Run uses " << nWells << " wells, but allocates at "
|
||||
@@ -87,7 +87,7 @@ namespace {
|
||||
|
||||
// Note: "1 +" to account for FIELD group being in 'sched.numGroups()'
|
||||
// but excluded from WELLDIMS(3).
|
||||
if (nGroups > 1 + static_cast<decltype(nGroups)>(wdims.maxGroupsInField()))
|
||||
if (nGroups > 1U + wdims.maxGroupsInField())
|
||||
{
|
||||
std::ostringstream os;
|
||||
os << "Run uses " << (nGroups - 1) << " non-FIELD groups, but "
|
||||
|
||||
@@ -400,7 +400,7 @@ namespace Opm {
|
||||
&& this->m_number_branch == rhs.m_number_branch
|
||||
&& this->m_depth_top == rhs.m_depth_top
|
||||
&& this->m_length_top == rhs.m_length_top
|
||||
&& this->m_volume_top == rhs.m_length_top
|
||||
&& this->m_volume_top == rhs.m_volume_top
|
||||
&& this->m_length_depth_type == rhs.m_length_depth_type
|
||||
&& this->m_comp_pressure_drop == rhs.m_comp_pressure_drop
|
||||
&& this->m_multiphase_model == rhs.m_multiphase_model
|
||||
|
||||
@@ -150,7 +150,7 @@ std::size_t RFTConfig::firstRFTOutput() const {
|
||||
|
||||
for (const auto& rft_pair : this->plt_config) {
|
||||
const auto& dynamic_state = rft_pair.second;
|
||||
auto pred = [] (const std::pair<PLTConnections::PLTEnum, std::size_t>& elm) { return false; };
|
||||
auto pred = [] (const std::pair<PLTConnections::PLTEnum, std::size_t>& ) { return false; };
|
||||
int this_first_rft = dynamic_state.find_if(pred);
|
||||
if (this_first_rft >= 0)
|
||||
first_rft = std::min(first_rft, static_cast<std::size_t>(this_first_rft));
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace Opm {
|
||||
{
|
||||
}
|
||||
|
||||
void Rock2dTable::init(const DeckRecord& record, size_t tableIdx)
|
||||
void Rock2dTable::init(const DeckRecord& record, size_t /* tableIdx */)
|
||||
{
|
||||
m_pressureValues.push_back(record.getItem("PRESSURE").getSIDoubleData()[0]);
|
||||
m_pvmultValues.push_back(record.getItem("PVMULT").getSIDoubleData());
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace Opm {
|
||||
{
|
||||
}
|
||||
|
||||
void Rock2dtrTable::init(const DeckRecord& record, size_t tableIdx)
|
||||
void Rock2dtrTable::init(const DeckRecord& record, size_t /* tableIdx */)
|
||||
{
|
||||
m_pressureValues.push_back(record.getItem("PRESSURE").getSIDoubleData()[0]);
|
||||
m_transMultValues.push_back(record.getItem("TRANSMULT").getSIDoubleData());
|
||||
|
||||
@@ -322,7 +322,7 @@ void ParserState::loadFile(const boost::filesystem::path& inputFile) {
|
||||
boost::filesystem::path inputFileCanonical;
|
||||
try {
|
||||
inputFileCanonical = boost::filesystem::canonical(inputFile);
|
||||
} catch (boost::filesystem::filesystem_error fs_error) {
|
||||
} catch (const boost::filesystem::filesystem_error& fs_error) {
|
||||
std::string msg = "Could not open file: " + inputFile.string();
|
||||
parseContext.handleError( ParseContext::PARSE_MISSING_INCLUDE , msg, errors);
|
||||
return;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
{"name" : "CARFIN" , "sections" : ["GRID"], "items" : [
|
||||
{"name" : "CARFIN" , "sections" : ["GRID"],
|
||||
"size" : 1,
|
||||
"items" : [
|
||||
{"name" : "NAME", "value_type": "STRING"},
|
||||
{"name" : "I1", "value_type" : "INT"},
|
||||
{"name" : "I2", "value_type" : "INT"},
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{"name" : "FLUXTYPE",
|
||||
"sections" : ["GRID"],
|
||||
"size" : 1}
|
||||
|
||||
|
||||
@@ -103,6 +103,7 @@ set( keywords
|
||||
000_Eclipse100/F/FIPOWG
|
||||
000_Eclipse100/F/FIP_PROBE
|
||||
000_Eclipse100/F/FLUXNUM
|
||||
000_Eclipse100/F/FLUXTYPE
|
||||
000_Eclipse100/F/FMTIN
|
||||
000_Eclipse100/F/FMTOUT
|
||||
000_Eclipse100/F/FMWSET
|
||||
|
||||
@@ -44,12 +44,12 @@
|
||||
using namespace Opm;
|
||||
|
||||
|
||||
double prod_opr(const EclipseState& es, const Schedule& sched, const data::Solution& sol, size_t report_step, double seconds_elapsed) {
|
||||
double prod_opr(const EclipseState& es, const Schedule& /* sched */, const data::Solution& /* sol */, size_t /* report_step */, double seconds_elapsed) {
|
||||
const auto& units = es.getUnits();
|
||||
return -units.to_si(UnitSystem::measure::rate, seconds_elapsed);
|
||||
}
|
||||
|
||||
void pressure(const EclipseState& es, const Schedule& sched, data::Solution& sol, size_t report_step, double seconds_elapsed) {
|
||||
void pressure(const EclipseState& es, const Schedule& /* sched */, data::Solution& sol, size_t /* report_step */, double seconds_elapsed) {
|
||||
const auto& grid = es.getInputGrid();
|
||||
const auto& units = es.getUnits();
|
||||
if (!sol.has("PRESSURE"))
|
||||
|
||||
@@ -66,25 +66,25 @@ struct test_data {
|
||||
};
|
||||
|
||||
|
||||
double prod_opr(const EclipseState& es, const Schedule& sched, const data::Solution& sol, size_t report_step, double seconds_elapsed) {
|
||||
double prod_opr(const EclipseState& es, const Schedule& /* sched */, const data::Solution& /* sol */, size_t /* report_step */, double /* seconds_elapsed */) {
|
||||
const auto& units = es.getUnits();
|
||||
double oil_rate = 1.0;
|
||||
return -units.to_si(UnitSystem::measure::rate, oil_rate);
|
||||
}
|
||||
|
||||
double prod_opr_low(const EclipseState& es, const Schedule& sched, const data::Solution& sol, size_t report_step, double seconds_elapsed) {
|
||||
double prod_opr_low(const EclipseState& es, const Schedule& /* sched */, const data::Solution& /* sol */, size_t /* report_step */, double /* seconds_elapsed */) {
|
||||
const auto& units = es.getUnits();
|
||||
double oil_rate = 0.5;
|
||||
return -units.to_si(UnitSystem::measure::rate, oil_rate);
|
||||
}
|
||||
|
||||
double prod_wpr_P1(const EclipseState& es, const Schedule& sched, const data::Solution& sol, size_t report_step, double seconds_elapsed) {
|
||||
double prod_wpr_P1(const EclipseState& es, const Schedule& /* sched */, const data::Solution& /* sol */, size_t /* report_step */, double /* seconds_elapsed */) {
|
||||
const auto& units = es.getUnits();
|
||||
double water_rate = 0.0;
|
||||
return -units.to_si(UnitSystem::measure::rate, water_rate);
|
||||
}
|
||||
|
||||
double prod_wpr_P2(const EclipseState& es, const Schedule& sched, const data::Solution& sol, size_t report_step, double seconds_elapsed) {
|
||||
double prod_wpr_P2(const EclipseState& es, const Schedule& /* sched */, const data::Solution& /* sol */, size_t report_step, double /* seconds_elapsed */) {
|
||||
const auto& units = es.getUnits();
|
||||
double water_rate = 0.0;
|
||||
if (report_step > 5)
|
||||
@@ -93,13 +93,13 @@ double prod_wpr_P2(const EclipseState& es, const Schedule& sched, const data::S
|
||||
return -units.to_si(UnitSystem::measure::rate, water_rate);
|
||||
}
|
||||
|
||||
double prod_wpr_P3(const EclipseState& es, const Schedule& sched, const data::Solution& sol, size_t report_step, double seconds_elapsed) {
|
||||
double prod_wpr_P3(const EclipseState& es, const Schedule& /* sched */, const data::Solution& /* sol */, size_t /* report_step */, double /* seconds_elapsed */) {
|
||||
const auto& units = es.getUnits();
|
||||
double water_rate = 0.0;
|
||||
return -units.to_si(UnitSystem::measure::rate, water_rate);
|
||||
}
|
||||
|
||||
double prod_wpr_P4(const EclipseState& es, const Schedule& sched, const data::Solution& sol, size_t report_step, double seconds_elapsed) {
|
||||
double prod_wpr_P4(const EclipseState& es, const Schedule& /* sched */, const data::Solution& /* sol */, size_t report_step, double /* seconds_elapsed */) {
|
||||
const auto& units = es.getUnits();
|
||||
double water_rate = 0.0;
|
||||
if (report_step > 10)
|
||||
|
||||
@@ -71,7 +71,7 @@ struct MockIH
|
||||
|
||||
MockIH::MockIH(const int numWells,
|
||||
const int nsegWell,
|
||||
const int ncwMax,
|
||||
const int /* ncwMax */,
|
||||
const int iConnPerConn,
|
||||
const int sConnPerConn,
|
||||
const int xConnPerConn)
|
||||
|
||||
Reference in New Issue
Block a user