if (varTarget != null && elem.value.size() != varSize)
{
engineInfo(simulator, elem.name + " expected matrix size: "
+ varSize + " in shape: (" + varTarget.getDimensions()
+ ") but received: " + elem.value.size() + "elements");
throw new SimulationException(simulator, "Variable "
+ elem.name + " does not have the appropriate size");
}
}
}