Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EclSum does not handle formatted ecl files correctly #901

Open
eivindjahren opened this issue Mar 23, 2023 · 0 comments
Open

EclSum does not handle formatted ecl files correctly #901

eivindjahren opened this issue Mar 23, 2023 · 0 comments

Comments

@eivindjahren
Copy link
Collaborator

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]

@eivindjahren eivindjahren changed the title EclSum does not handled formatted ecl files correctly EclSum does not handle formatted ecl files correctly Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant