Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
Fix binding error in ecl_grid
Browse files Browse the repository at this point in the history
  • Loading branch information
joakim-hove committed Mar 14, 2017
1 parent d9b6623 commit b21ec74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/python/ert/ecl/ecl_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ def write_grdecl( self , ecl_kw , pyfile , special_header = None , default_value

if len(ecl_kw) == self.getNumActive() or len(ecl_kw) == self.getGlobalSize():
cfile = CFILE( pyfile )
self._fwrite_grdecl2( ecl_kw , special_header , cfile , default_value )
self._fwrite_grdecl( ecl_kw , special_header , cfile , default_value )
else:
raise ValueError("Keyword: %s has invalid size(%d), must be either nactive:%d or nx*ny*nz:%d" % (ecl_kw.getName() , len(ecl_kw) , self.getNumActive() , self.getGlobalSize()))

Expand Down

0 comments on commit b21ec74

Please sign in to comment.