}\r
\r
private static void processChild(ReadGraph graph, Variable child, PartialIC IC) throws DatabaseException {\r
- \r
- System.err.println("processChild " + child.getURI(graph));\r
- \r
+\r
for(Variable c : child.getChildren(graph)) {\r
processChild(graph, c, IC);\r
}\r
Resource child = Layer0Utils.getPossibleChild(graph, model, name);\r
SysdynResource SYSDYN = SysdynResource.getInstance(graph);\r
\r
- if((child != null) && graph.isInstanceOf(child, SYSDYN.InitialCondition))\r
+ if((child != null) && graph.isInstanceOf(child, SYSDYN.InitialCondition)) {\r
+ Layer0Utils.addCommentMetadata(graph, "Deleted Initial Condition " + graph.getRelatedValue2(child, Layer0.getInstance(graph).HasName, Bindings.STRING));\r
RemoverUtil.remove(graph, child);\r
- Layer0Utils.addCommentMetadata(graph, "Deleted Initial Condition " + graph.getRelatedValue2(child, Layer0.getInstance(graph).HasName, Bindings.STRING));\r
+ }\r
}\r
- \r
}\r