|
@@ -34,7 +34,7 @@ public class HcfdPath {
|
|
List<Integer> steps = new ArrayList<>();
|
|
List<Integer> steps = new ArrayList<>();
|
|
File[] files =exeOutDir.listFiles();
|
|
File[] files =exeOutDir.listFiles();
|
|
for (File sonFile: files) {
|
|
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","");
|
|
String stip=sonFile.getName().replace("hcfd_tec_boundary_timestep","").replace(".dat","");
|
|
steps.add(Integer.valueOf(stip));
|
|
steps.add(Integer.valueOf(stip));
|
|
}
|
|
}
|
|
@@ -89,7 +89,8 @@ public class HcfdPath {
|
|
|
|
|
|
public static void main(String[] args) {
|
|
public static void main(String[] args) {
|
|
String stip="hcfd_tec_boundary_timestep100.dat".replace("hcfd_tec_boundary_timestep","").replace(".dat","");
|
|
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);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|