Skip to content

Commit

Permalink
disable optimization OptModules for dynopt where +simCodeTarget=XML
Browse files Browse the repository at this point in the history
  • Loading branch information
vruge authored and OpenModelica-Hudson committed Jun 7, 2015
1 parent b3abd2b commit 6ebad16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Compiler/BackEnd/DynamicOptimization.mo
Expand Up @@ -82,10 +82,11 @@ protected
list<BackendDAE.Equation> e;
algorithm

if not inOptimicaFlag and not inDynOptimization then //no optimization
if (not inOptimicaFlag and not inDynOptimization) or Flags.getConfigString(Flags.SIMCODE_TARGET) == "XML" then //no optimization
outVars := inVars;
outEqns := inEqns;
outClassAttr := inClassAttr;
Flags.setConfigBool(Flags.GENERATE_DYN_OPTIMIZATION_PROBLEM, false);
else

if not inOptimicaFlag then
Expand Down

0 comments on commit 6ebad16

Please sign in to comment.