Skip to content

Commit

Permalink
cleaner messages
Browse files Browse the repository at this point in the history
  • Loading branch information
yannrichet committed Sep 30, 2021
1 parent ef5a5e0 commit 460f709
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/funz/Telemac/SerafinAdapterHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class SerafinAdapterHelper {

classCoordinate = Class.forName("com.vividsolutions.jts.geom.Coordinate", true, child);

System.out.println("Well loaded com.vividsolutions.jts.geom.Coordinate.");
//System.out.println("Well loaded com.vividsolutions.jts.geom.Coordinate.");
} catch (Exception ex) {
System.err.println("Cannot load com.vividsolutions.jts.geom.Coordinate !");
ex.printStackTrace();
Expand All @@ -58,7 +58,7 @@ public SerafinAdapterHelper(File source) throws Exception {
serafinNewReader_setFile.invoke(serafinNewReader, source);
Object read = serafinNewReader_read.invoke(serafinNewReader);
serafinAdapter = read.getClass().getMethod("getSource").invoke(read);
System.err.println("serafinAdapter: " + serafinAdapter);
//System.err.println("serafinAdapter: " + serafinAdapter);
}

double[] getPasDeTemps() throws Exception {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/funz/Telemac/TelemacHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ static Map<String, double[][]> extractPOIfromRES(File res, Properties poi) throw
SerafinAdapterHelper s = new SerafinAdapterHelper(res);

dat.put("T", new double[][]{s.getPasDeTemps()});
System.err.println(" containing " + s.getPasDeTemps().length + " time steps");
//System.err.println(" containing " + s.getPasDeTemps().length + " time steps");

for (int vi = 0; vi < s.getVariables().length; vi++) {
String v = s.getVariables()[vi];
System.err.println("Reading " + v + " at:");
//System.err.println("Reading " + v + " at:");
for (String p : poi.stringPropertyNames()) {
System.err.println(p);
//System.err.println(p);
if (poi.getProperty(p).contains(",") && poi.getProperty(p).contains(":")) { // so, this is a x0,y0:nx,ny:x1,y1 zone poi
String cs = poi.get(p).toString();
String cs0 = cs.substring(0, cs.indexOf(":"));
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/funz/Telemac/TelemacIOPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@ public LinkedList<File> getRelatedFiles(File cas) {
//System.err.println("? "+d);
File f = new File(cas.getAbsoluteFile().getParentFile(),d);
if (f.isFile()) {
System.err.println("Found related file "+f);
//System.err.println("Found related file "+f);
toimport.add(f);
} else {
System.err.println("Could not find related file "+f);
//System.err.println("Could not find related file "+f);
}
}
}
Expand Down

0 comments on commit 460f709

Please sign in to comment.