Skip to content

Commit

Permalink
- small bugfix for algorithms with no outputs
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7346 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Dec 10, 2010
1 parent b77bf00 commit 7601eb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Compiler/BackendDAECreate.mo
Expand Up @@ -1581,10 +1581,10 @@ algorithm
BackendDAE.Value numnodes_1,numnodes,aindx;
list<BackendDAE.Equation> res,res1;
list<DAE.Exp> inputs,outputs;
case ({},_,0,_) then ({},{});
case (inputs,outputs,0,aindx)
case (inputs as (_::_),{},0,aindx)
then
({},{BackendDAE.ALGORITHM(aindx,inputs,outputs,DAE.emptyElementSource)});
({},{BackendDAE.ALGORITHM(aindx,inputs,{},DAE.emptyElementSource)});
case (_,_,0,_) then ({},{});
case (inputs,outputs,numnodes,aindx)
equation
numnodes_1 = numnodes - 1;
Expand Down

0 comments on commit 7601eb7

Please sign in to comment.