Skip to content

Commit

Permalink
MSH: added a block number property
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed May 17, 2019
1 parent 194f100 commit 4d3c488
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ogs5py/fileclasses/msh/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,11 @@ def _dict(self):
def _dict(self, value):
self.__meshlist[self.block] = value

@property
def block_no(self):
""":class:`int`: The number of blocks in the file."""
return len(self.__meshlist)

# select the block to be edited
@property
def block(self):
Expand Down

0 comments on commit 4d3c488

Please sign in to comment.