Skip to content

Commit

Permalink
some mem purging in MAP lensrec
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-Belkner committed Jul 3, 2023
1 parent 063a621 commit d154fa0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions delensalot/core/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,7 @@ def run(self):
itlib_iterator.soltn_cond = self.soltn_cond(it)
itlib_iterator.iterate(it, 'p')
log.info('{}, simidx {} done with it {}'.format(mpi.rank, simidx, it))
self.simulationdata.purgecache()

if task == 'calc_meanfield':
# TODO I don't like barriers and not sure if they are still needed
Expand All @@ -919,6 +920,7 @@ def run(self):
self.itlib_iterator = transform(self, iterator_transformer(self, simidx, self.dlensalot_model))
for it in range(self.itmax + 1):
self.get_blt_it(simidx, it)
self.simulationdata.purgecache()


# # @base_exception_handler
Expand Down

0 comments on commit d154fa0

Please sign in to comment.