VectorSum does not support nested variable groups
I get the following error when summing two nested groups using the VectorSum element in the OspSystemStructure file: Could not create execution from OspSystemStructure.xml file: invalid vector<T> subscript.
The error appeared after I rewrote the configuration file to use variable groups defined in OSP-IS.
Before refactoring:
<Generic name="Generic"/> <Variable ref="var_1/> <Variable ref="var_2"/> </Generic>
After:
<Generic name="Generic"/> <NestedGroupA name="nested_group_A"> <Variable ref="var_1/> </NestedGroupA> <NestedGroupB name="nested_group_B"> <Variable ref="var_2/> </NestedGroupB> </Generic>
I am using the demo application to run the simulation, so I am not 100% sure the issue is in libcosim or the demo app.