瀏覽代碼

hcfd step

huangxingxing 2 年之前
父節點
當前提交
ba502e73a1
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/main/java/com/miniframe/solverconfig/hcfd/HcfdPath.java

+ 3 - 2
src/main/java/com/miniframe/solverconfig/hcfd/HcfdPath.java

@@ -34,7 +34,7 @@ public class HcfdPath {
         List<Integer> steps = new ArrayList<>();
         File[] files =exeOutDir.listFiles();
         for (File sonFile: files) {
-            if(sonFile.getName().indexOf("hcfd_tec_boundary_timestep")>0){
+            if(sonFile.getName().indexOf("hcfd_tec_boundary_timestep")>-1){
                 String stip=sonFile.getName().replace("hcfd_tec_boundary_timestep","").replace(".dat","");
                 steps.add(Integer.valueOf(stip));
             }
@@ -89,7 +89,8 @@ public class HcfdPath {
 
     public static void main(String[] args) {
         String stip="hcfd_tec_boundary_timestep100.dat".replace("hcfd_tec_boundary_timestep","").replace(".dat","");
-        System.out.println(stip);
+        Integer s ="hcfd_tec_boundary_timestep100.dat".indexOf("hcf2d_tec_boundary_timestep");
+        System.out.println(s);
     }
 
 }