[pyfr] 32/88: Fix a minor error in the PI step-size controller.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Nov 16 12:05:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository pyfr.
commit 5fb4e92d5050eeb10b4f6d3df8b60916fffc9525
Author: Freddie Witherden <freddie at witherden.org>
Date: Mon May 2 20:39:08 2016 -0700
Fix a minor error in the PI step-size controller.
---
pyfr/integrators/std/controllers.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyfr/integrators/std/controllers.py b/pyfr/integrators/std/controllers.py
index 45370ff..48b96d1 100644
--- a/pyfr/integrators/std/controllers.py
+++ b/pyfr/integrators/std/controllers.py
@@ -97,7 +97,7 @@ class StdPIController(BaseStdController):
self._beta = self.cfg.getfloat(sect, 'pi-beta', 0.4)
# Estimate of previous error
- self._errprev = 0.0
+ self._errprev = 1.0
# Step size adjustment factors
self._saffac = self.cfg.getfloat(sect, 'safety-fact', 0.8)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyfr.git
More information about the debian-science-commits
mailing list