Mercurial > dive4elements > river
changeset 3045:0905d1e7b37e
Fix certain GaugeDischargeArtifact issues.
flys-artifacts/trunk@4614 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 06 Jun 2012 15:46:49 +0000 |
parents | 37982acfe1a3 |
children | 6e4ad35bcb11 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeFacet.java |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Wed Jun 06 15:44:59 2012 +0000 +++ b/flys-artifacts/ChangeLog Wed Jun 06 15:46:49 2012 +0000 @@ -1,3 +1,8 @@ +2012-06-06 Felix Wolfsteller <felix.wolfsteller@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeFacet.java: + Hard-code state id, instruct computation to result in facets. + 2012-06-06 Felix Wolfsteller <felix.wolfsteller@intevation.de> * src/main/java/de/intevation/flys/artifacts/StaticWKmsArtifact.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeFacet.java Wed Jun 06 15:44:59 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeFacet.java Wed Jun 06 15:46:49 2012 +0000 @@ -25,7 +25,7 @@ public GaugeDischargeFacet(int index, String name, String desc) { - super(index, name, desc, ComputeType.ADVANCE, null, null); + super(index, name, desc, ComputeType.ADVANCE, null, "state.gaugedischarge.init"); } @@ -66,7 +66,7 @@ FLYSArtifact flys = (FLYSArtifact) artifact; CalculationResult res = (CalculationResult) - flys.compute(context, hash, stateId, type, false); + flys.compute(context, hash, stateId, type, true); WQKms[] discharge = (WQKms[]) res.getData();