diff options
author | Aaron LI <aly@aaronly.me> | 2017-10-19 09:05:35 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-10-19 09:05:35 +0800 |
commit | 73e6f8a436e7b805144c48c757a7bab0ab94b01b (patch) | |
tree | a940970f84c0adec2e77be142e443c9e3e7e37a6 /fg21sim/extragalactic/clusters/solver.py | |
parent | 13861dc37376e04ea64bbf61a49c0f183d84a558 (diff) | |
download | fg21sim-73e6f8a436e7b805144c48c757a7bab0ab94b01b.tar.bz2 |
clusters/halo: Improve time step determination a bit
Diffstat (limited to 'fg21sim/extragalactic/clusters/solver.py')
-rw-r--r-- | fg21sim/extragalactic/clusters/solver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fg21sim/extragalactic/clusters/solver.py b/fg21sim/extragalactic/clusters/solver.py index c29748e..2fd800a 100644 --- a/fg21sim/extragalactic/clusters/solver.py +++ b/fg21sim/extragalactic/clusters/solver.py @@ -408,7 +408,7 @@ class FokkerPlanckSolver: tstep = self.tstep logger.debug("Solving Fokker-Planck equation: " + "time: %.3f - %.3f" % (tstart, tstop)) - nstep = int((tstop - tc) / tstep) + nstep = int(np.ceil((tstop - tc) / tstep)) logger.debug("Constant time step: %.3f (#%d steps)" % (tstep, nstep)) i = 0 while tc+tstep < tstop: |