Before I tidy that up to make a PR with the test, can anyone (@agarny @hsorby) spot anything that I'm doing wrong in that model? My guess is that the base unit is being treated as a separate instance in each component's variable when parsed? In this case, if I make the cells units an alias for dimensionless then it all works fine...but clearly isn't quite what is intended.
I'm having an issue with a model that has defined a new base units and then using that units across multiple components. I've tried to create a minimal test here: https://github.com/nickerso/libcellml/blob/hugh-windows-buid/tests/units/units.cpp#L2735
Before I tidy that up to make a PR with the test, can anyone (@agarny @hsorby) spot anything that I'm doing wrong in that model? My guess is that the base unit is being treated as a separate instance in each component's variable when parsed? In this case, if I make the
cells
units an alias for dimensionless then it all works fine...but clearly isn't quite what is intended.