huangxingxing 2 éve
szülő
commit
ba502e73a1

+ 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);
     }
 
 }