dcb
2025-07-07 97629da6a002b534da10f828187fd6cd65941aa4
src/main/java/com/se/nsl/domain/vo/ConfigVo.java
@@ -29,6 +29,8 @@
    private Boolean variable_dt;
    private double evaporation;
    private ResultVo result;
    public ConfigVo() {
@@ -44,6 +46,7 @@
        this.infiltration = "case1/landuse_to_infiltration.dat";
        this.dt = 0.1;
        this.variable_dt = true;
        this.evaporation = 0;
    }
    public ConfigVo(String terrain, String landuse, String station,
@@ -59,7 +62,8 @@
        this.landuse = landuse;
        this.raingage = Arrays.asList(raingage, "mm/min");
        this.duration = duration;
        int saveInterval = duration / frames - 5; // 修订最后一帧可能为空数据
//        int saveInterval = duration / frames - 5; // 修订最后一帧可能为空数据
        double saveInterval = (double)duration / frames;
        this.result = new ResultVo(saveName, frames, saveInterval, saveMode, startTime);
    }
@@ -166,4 +170,12 @@
    public void setResult(ResultVo result) {
        this.result = result;
    }
    public double getEvaporation() {
        return evaporation;
    }
    public void setEvaporation(double evaporation) {
        this.evaporation = evaporation;
    }
}