Skip to content

Commit

Permalink
Dont call finalize() on Lisflood.bmi when Lisflood.finalize() is call…
Browse files Browse the repository at this point in the history
…ed. Only perform container clean up

Refs #257
  • Loading branch information
sverhoeven committed Sep 29, 2021
1 parent 565f45d commit af69821
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ewatercycle/models/lisflood.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,11 @@ def parameters(self) -> Iterable[Tuple[str, Any]]:
("end_time", self._end.strftime("%Y-%m-%dT%H:%M:%SZ")),
]

def finalize(self) -> None:
"""Perform tear-down tasks for the model."""
# Finalize function of bmi class of lisflood is kaput, so not calling it
del self.bmi


# TODO it needs fix regarding forcing
# def reindex_forcings(
Expand Down

0 comments on commit af69821

Please sign in to comment.