Skip to content

EclSum does not handle formatted ecl files correctly #901

@eivindjahren

Description

@eivindjahren

Using the following FSMSPEC and FUNSMRY files respectively

 'INTEHEAD'           2 'INTE'
           1         100
 'RESTART '           9 'CHAR'
 'AAAAAAAA' '        ' '        ' '        ' '        ' '        ' '        '
 '        ' '        '
 'DIMENS  '           6 'INTE'
           3           1           1           1           0           1
 'KEYWORDS'           3 'CHAR'
 'TIME    ' 'AAQR    ' 'AAQR    '
 'WGNAMES '           3 'CHAR'
 ':+:+:+:+' 'AAAAAAAA' 'AAAAAAAA'
 'NUMS    '           3 'INTE'
      -32676           0           0
 'UNITS   '           3 'CHAR'
 'DAYS    ' 'SM3/DAY ' 'SM3/DAY '
 'STARTDAT'           6 'INTE'
           1           1        1971           0           0           0

 'INTEHEAD'           2 'INTE'
           1         100
 'RESTART '           9 'CHAR'
 'AAAAAAAA' '        ' '        ' '        ' '        ' '        ' '        '
 '        ' '        '
 'DIMENS  '           6 'INTE'
           3           1           1           1           0           1
 'KEYWORDS'           3 'CHAR'
 'TIME    ' 'AAQR    ' 'AAQR    '
 'WGNAMES '           3 'CHAR'
 ':+:+:+:+' 'AAAAAAAA' 'AAAAAAAA'
 'NUMS    '           3 'INTE'
      -32676           0           0
 'UNITS   '           3 'CHAR'
 'DAYS    ' 'SM3/DAY ' 'SM3/DAY '
 'STARTDAT'           6 'INTE'
           1           1        1999           0           0           0

When loaded with EclSum I get

eclsum = EclSum("TEST")
print([v.value() for v in eclsum.alloc_time_vector(False)])

I would expect [915148800, 915235200, 915321600] to be printed, but instead I get [3784234291200, 3784234291200, 3784234291200]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions