[Greater-commits] r3603 - trunk/GREAT-ERModel/GreaterModel/Worker
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Jul 15 11:06:02 CEST 2011
Author: aheinecke
Date: 2011-07-15 11:06:01 +0200 (Fri, 15 Jul 2011)
New Revision: 3603
Modified:
trunk/GREAT-ERModel/GreaterModel/Worker/simpletreatmodel.py
Log:
Revert commit 3600 because it is an uneccerssary loss of accuracy
Modified: trunk/GREAT-ERModel/GreaterModel/Worker/simpletreatmodel.py
===================================================================
--- trunk/GREAT-ERModel/GreaterModel/Worker/simpletreatmodel.py 2011-07-15 09:03:32 UTC (rev 3602)
+++ trunk/GREAT-ERModel/GreaterModel/Worker/simpletreatmodel.py 2011-07-15 09:06:01 UTC (rev 3603)
@@ -17,6 +17,7 @@
from numpy import *
from numpy.linalg import *
+from numpy import float64 as Float
from numpy.linalg import solve as solve_linear_equations
from stochasticresult import StochasticResult
@@ -232,13 +233,13 @@
ID = self.ID
# Matrices and vectors
- V = zeros((5), float)
- k = zeros((5), float)
- conc = zeros((5), float)
- PHI = zeros((5), float)
- ADV = zeros((5,5), float)
- XCH = zeros((5,5), float)
- COEF = zeros((5,5), float)
+ V = zeros((5), Float)
+ k = zeros((5), Float)
+ conc = zeros((5), Float)
+ PHI = zeros((5), Float)
+ ADV = zeros((5,5), Float)
+ XCH = zeros((5,5), Float)
+ COEF = zeros((5,5), Float)
# Settler Efficiency
fraction_treated = self.FractionTreated(
@@ -328,8 +329,8 @@
# is not considered.
# See GREAT-ER, Technical Documentation, G. Boeije, 1999 for Details.
- PHI_ = zeros((4), float)
- COEF_ = zeros((4,4), float)
+ PHI_ = zeros((4), Float)
+ COEF_ = zeros((4,4), Float)
for i in range(1,5):
for j in range(1,5):
@@ -710,12 +711,12 @@
ID = self.ID
# Matrices and vectors
- V = zeros((7), float)
- k = zeros((7), float)
- conc = zeros((7), float)
- PHI = zeros((7), float)
- ADV = zeros((7,7), float)
- XCH = zeros((7,7), float)
+ V = zeros((7), Float)
+ k = zeros((7), Float)
+ conc = zeros((7), Float)
+ PHI = zeros((7), Float)
+ ADV = zeros((7,7), Float)
+ XCH = zeros((7,7), Float)
# Secondary Settler Efficiency
fraction_treated = self.FractionTreated(
@@ -990,8 +991,8 @@
# is not considered.
# See GREAT-ER, Technical Documentation, G. Boeije, 1999 for Details.
- PHI_ = zeros((6), float)
- COEF_ = zeros((6,6), float)
+ PHI_ = zeros((6), Float)
+ COEF_ = zeros((6,6), Float)
for i in range(1,7):
for j in range(1,7):
More information about the Greater-commits
mailing list