Skip to content

Commit

Permalink
MM: Multiple algorithm sections without warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Mar 5, 2016
1 parent 0e016dc commit f31e10e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Compiler/FrontEnd/InstUtil.mo
Expand Up @@ -7880,7 +7880,9 @@ algorithm
case (_,(elt1 as DAE.ALGORITHM(source=source))::elts,SOME(elt2),_,_,_)
equation
str = Absyn.pathString(path);
Error.addSourceMessage(Error.FUNCTION_MULTIPLE_ALGORITHM,{str},DAEUtil.getElementSourceFileInfo(source));
if not Config.acceptMetaModelicaGrammar() then
Error.addSourceMessage(Error.FUNCTION_MULTIPLE_ALGORITHM,{str},DAEUtil.getElementSourceFileInfo(source));
end if;
then optimizeFunctionCheckForLocals(path,elts,SOME(elt1),elt2::acc,invars,outvars);
case (_,(elt as DAE.ALGORITHM())::elts,NONE(),_,_,_)
then optimizeFunctionCheckForLocals(path,elts,SOME(elt),acc,invars,outvars);
Expand Down

0 comments on commit f31e10e

Please sign in to comment.