Skip to content

Commit

Permalink
Merge branch 'engineering_optim_trials' of github.com:OceanParcels/pa…
Browse files Browse the repository at this point in the history
…rcels into engineering_optim_trials
  • Loading branch information
CKehl committed Dec 31, 2020
2 parents 42ba546 + 77730ef commit 2a7e9ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parcels/particleset_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def measure_mem_usage():
return rsc.ru_maxrss*1024
return rsc.ru_maxrss

USE_ASYNC_MEMLOG = True
USE_ASYNC_MEMLOG = False
USE_RUSE_SYNC_MEMLOG = False # can be faulty

class ParticleSet_Benchmark(ParticleSet):
Expand Down Expand Up @@ -206,6 +206,7 @@ def execute(self, pyfunc=AdvectionRK4, endtime=None, runtime=None, dt=1.,
if verbose_progress:
pbar = self._create_progressbar_(_starttime, endtime)

mem_used_start = 0
if USE_ASYNC_MEMLOG:
self.async_mem_log.measure_func = measure_mem
mem_used_start = measure_mem()
Expand Down

0 comments on commit 2a7e9ae

Please sign in to comment.