variables.add(ds);\r
}\r
}\r
+ \r
+ /**\r
+ * Read a all missing variable from the result file\r
+ * \r
+ * @param file result file\r
+ * @throws FileNotFoundException\r
+ * @throws IOException\r
+ */\r
+ public void readMissingVariables(File file) throws FileNotFoundException, IOException {\r
+ List<String> names = resultFileReader.getNames();\r
+ for (String variable : names) {\r
+ boolean matchFound = false; \r
+ for (DataSet tempDs : variables) {\r
+ if (tempDs.name.equals(variable)) {\r
+ matchFound = true;\r
+ break;\r
+ }\r
+ }\r
+ if (matchFound) {\r
+ continue;\r
+ }\r
+ readVariable(variable, file);\r
+ }\r
+ }\r
\r
/**\r
* Read time array from result file\r
binding = Bindings.getBinding( accessor.type() );\r
value = accessor.getValue(binding);\r
}\r
+ // Read the missing variables one by one.\r
+ simulationResult.readMissingVariables(this.resultFile);\r
+\r
addAllDataSets(progressMonitor);\r
// Write to file\r
if (progressMonitor != null) {\r