From 8bbae62cfbfa392729a68226e180353c3b485bff Mon Sep 17 00:00:00 2001 From: Thomas Evang Date: Tue, 19 May 2020 09:06:42 +0200 Subject: [PATCH] Dimension is now set to correct value when parsing vector sum functions (#569) --- src/cosim/osp_config_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cosim/osp_config_parser.cpp b/src/cosim/osp_config_parser.cpp index 5629852c0..3e4ca75b4 100644 --- a/src/cosim/osp_config_parser.cpp +++ b/src/cosim/osp_config_parser.cpp @@ -354,7 +354,7 @@ osp_config_parser::osp_config_parser( int inputCount = boost::lexical_cast(tc(functionElement->getAttribute(tc("inputCount").get()))); function.inputCount = inputCount; int dimension = boost::lexical_cast(tc(functionElement->getAttribute(tc("dimension").get()))); - function.dimension = inputCount; + function.dimension = dimension; for (int i = 0; i < inputCount; i++) { const std::string sgName = "in[" + std::to_string(i) + "]";