Index: mttroot/mtt/lib/rep/sfun_rep/sfun.cc.tmpl ================================================================== --- mttroot/mtt/lib/rep/sfun_rep/sfun.cc.tmpl +++ mttroot/mtt/lib/rep/sfun_rep/sfun.cc.tmpl @@ -61,13 +61,13 @@ } ssSetNumContStates(S, MTTNX); ssSetNumDiscStates(S, 0); - if (!ssSetNumInputPorts(S, 1)) return; - ssSetInputPortWidth(S, 0, 1); + if (!ssSetNumInputPorts(S, MTTNU)) return; for (int i = 0; i < MTTNU; i++) { + ssSetInputPortWidth(S, i, 1); ssSetInputPortDirectFeedThrough(S, i, 1); } if (!ssSetNumOutputPorts(S, MTTNY)) return; for (int i = 0; i < MTTNY; i++) {