libcosim icon indicating copy to clipboard operation
libcosim copied to clipboard

VectorSum does not support nested variable groups

Open THEvang opened this issue 5 years ago • 0 comments

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.

THEvang avatar Jun 22 '20 14:06 THEvang