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) + "]";