Added ZGRP data to the eclipse restart file

This commit is contained in:
Jostein Alvestad
2018-11-06 14:31:03 +01:00
parent 92f65b7958
commit 0cfbfb9957
2 changed files with 9 additions and 1 deletions

View File

@@ -549,6 +549,14 @@ captureDeclaredGroupData(const Opm::Schedule& sched,
auto xg = this->xGroup_[groupID];
XGrp::dynamicContrib( restart_group_keys, restart_field_keys, groupKeyToIndex, fieldKeyToIndex, group, sumState, ecl_compatible_rst, xg);
});
// Define Static Contributions to ZGrp Array.
groupLoop(curGroups,
[this](const Group& group, const std::size_t groupID) -> void
{
auto zw = this->zGroup_[groupID];
zw[0] = group.name();
});
}

View File

@@ -311,10 +311,10 @@ namespace {
grpKeyToInd, fldKeyToInd,
ecl_compatible_rst,
simStep, sumState, ih);
write_kw(rst_file, "IGRP", groupData.getIGroup());
write_kw(rst_file, "SGRP", groupData.getSGroup());
write_kw(rst_file, "XGRP", groupData.getXGroup());
write_kw(rst_file, "ZGRP", serialize_ZWEL(groupData.getZGroup()));
}
void writeMSWData(::Opm::RestartIO::ecl_rst_file_type* rst_file,