Skip to content

Commit

Permalink
Resolve memory issue on ensemble of sflux
Browse files Browse the repository at this point in the history
  • Loading branch information
SorooshMani-NOAA committed Dec 28, 2023
1 parent 781ece5 commit f97983c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions coupledmodeldriver/generate/schism/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,9 @@ def pyschism_driver(self) -> ModelDriver:
nws=meteo,
source_sink=hydrology,
)
# To avoid excessive memory use, especially when writing ensembles
self.base_mesh = self['hgrid_path']
self.pyschism_mesh = self['hgrid_path']
# Hacky way to set the resource for tide
if tides is not None:
config.bctides.tides = tides
Expand Down

0 comments on commit f97983c

Please sign in to comment.