changes to correct output of restart data for networks

corrections to intehead for netbalan data plus improvements createdoubhead

simplification of code due to changes in master

correction to default value for NETBALAN PRESSURE_CONVERGENCE_LIMIT
This commit is contained in:
Jostein Alvestad
2021-11-08 00:11:41 +01:00
parent e250f83c1d
commit 556c21a254
6 changed files with 46 additions and 8 deletions

View File

@@ -123,6 +123,11 @@ namespace Opm { namespace RestartIO {
int nominated_phase;
};
struct ActiveNetwork {
int actnetwrk;
};
struct NetworkDims {
int noactnod;
int noactbr;
@@ -216,6 +221,7 @@ namespace Opm { namespace RestartIO {
InteHEAD& tuningParam(const TuningPar& tunpar);
InteHEAD& variousParam(const int version, const int iprog);
InteHEAD& wellSegDimensions(const WellSegDims& wsdim);
InteHEAD& activeNetwork(const ActiveNetwork& actntwrk);
InteHEAD& networkDimensions(const NetworkDims& nwdim);
InteHEAD& netBalanceData(const NetBalanceDims& nwbaldim);
InteHEAD& regionDimensions(const RegDims& rdim);

View File

@@ -94,6 +94,8 @@ namespace Opm { namespace RestartIO { namespace Helpers { namespace VectorItems
WHISTC = 71, // Calendar year of report step
ACTNETWRK = 74, // Indicator for active external network (= 0: no active network, = 2 Active network)
NETBALAN_5 = 77, // NETBALAN, Item5
NETBALAN_3 = 79, // NETBALAN, Item3