From 97629da6a002b534da10f828187fd6cd65941aa4 Mon Sep 17 00:00:00 2001
From: dcb <xgybdcb@163.com>
Date: 星期一, 07 七月 2025 17:14:13 +0800
Subject: [PATCH] 模拟间隔支持毫秒级

---
 src/main/java/com/se/nsl/domain/vo/ConfigVo.java |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/se/nsl/domain/vo/ConfigVo.java b/src/main/java/com/se/nsl/domain/vo/ConfigVo.java
index bbf08e7..c629b96 100644
--- a/src/main/java/com/se/nsl/domain/vo/ConfigVo.java
+++ b/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;
+    }
 }

--
Gitblit v1.9.3