Skip to content

Commit

Permalink
- fix #2404
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17606 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Oct 8, 2013
1 parent 516d007 commit d618a6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/BackEnd/Initialization.mo
Expand Up @@ -708,12 +708,12 @@ algorithm
_ = warnAboutIterationVariablesWithDefaultZeroStartAttribute2(rest, inVars);
then true;

case (BackendDAE.EQUATIONSYSTEM(vars=vlst)::rest, _) equation
case (BackendDAE.EQUATIONSYSTEM(vars=vlst, jacType=BackendDAE.JAC_NONLINEAR())::rest, _) equation
varlst = List.map1r(vlst, BackendVariable.getVarAt, inVars);
varlst = filterVarsWithoutStartValue(varlst);
false = List.isEmpty(varlst);

Debug.fcall(Flags.INITIALIZATION, Error.addCompilerWarning, "Iteration variables with default zero start attribute in equation system:\n" +& warnAboutVars2(varlst));
Debug.fcall(Flags.INITIALIZATION, Error.addCompilerWarning, "Iteration variables with default zero start attribute in nonlinear equation system:\n" +& warnAboutVars2(varlst));
_ = warnAboutIterationVariablesWithDefaultZeroStartAttribute2(rest, inVars);
then true;

Expand Down

0 comments on commit d618a6b

Please sign in to comment.