use of cbit.vcell.math.PointSubDomain in project vcell by virtualcell.
the class MovingBoundaryFileWriter method manageCompartment.
private void manageCompartment(Element e, SubDomain sd) {
try {
if (!sd.getEquationCollection().isEmpty()) {
Element se = getXMLSubdomain(sd);
if (sd instanceof CompartmentSubDomain || sd instanceof PointSubDomain) {
for (Equation equation : sd.getEquationCollection()) {
System.out.println("add this: " + equation.getVariable().getName());
se.addContent(getSpecies(equation));
}
e.addContent(se);
}
}
} catch (Exception exc) {
throw new RuntimeException("error managing compartment", exc);
}
}
Aggregations