#996 Updates related to changes in ERT API

This commit is contained in:
Magne Sjaastad 2016-11-22 12:51:11 +01:00
parent 9178659449
commit d8b15e1446

View File

@ -351,7 +351,10 @@ void RifEclipseOutputFileTools::createReportStepsMetaData(std::vector<ecl_file_t
int reportStepCount = ecl_file_get_num_named_kw(ecl_file, INTEHEAD_KW);
for (int reportStepIndex = 0; reportStepIndex < reportStepCount; reportStepIndex++)
{
ecl_rsthead_type* restart_header = ecl_rsthead_ialloc(ecl_file, reportStepIndex);
ecl_file_view_type* rst_view = ecl_file_get_global_view(ecl_file);
if (!rst_view) continue;
ecl_rsthead_type* restart_header = ecl_rsthead_alloc(rst_view, reportStepIndex);
if (restart_header)
{
ecl_file_push_block(ecl_file);