Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use normal initialization system if no lambda0 system was generated #7095

Merged
merged 1 commit into from Jan 20, 2021

Conversation

AnHeuermann
Copy link
Member

  • Don't generate function for initialEquations_lambda0 if it's empty
  • C runtime will use normal initialization system with lambda=0 if
    no initialEquations_lambda0 was generated.

  - Don't generate function for initialEquations_lambda0 if it's empty
  - C runtime will use normal initialization system with lambda=0 if
    no initialEquations_lambda0 was generated.
@AnHeuermann AnHeuermann self-assigned this Jan 20, 2021
@AnHeuermann AnHeuermann merged commit 116b440 into OpenModelica:master Jan 20, 2021
Copy link
Contributor

@phannebohm phannebohm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo 🙂

}
else
{
warningStreamPrint(LOG_INIT_HOMOTOPY, 0, "No initialEquation_lambda0 was generated. Using normal initla equation system with lambda=0 instead.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
warningStreamPrint(LOG_INIT_HOMOTOPY, 0, "No initialEquation_lambda0 was generated. Using normal initla equation system with lambda=0 instead.");
warningStreamPrint(LOG_INIT_HOMOTOPY, 0, "No initialEquation_lambda0 was generated. Using normal initial equation system with lambda=0 instead.");

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ups. I was to fast with merging it. I'll fix it in one of the next commits.
Or forget about it and this will be in omc forever 😆

}
else
{
warningStreamPrint(LOG_INIT_HOMOTOPY, 0, "No initialEquation_lambda0 was generated. Using normal initla equation system with lambda=0 instead.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
warningStreamPrint(LOG_INIT_HOMOTOPY, 0, "No initialEquation_lambda0 was generated. Using normal initla equation system with lambda=0 instead.");
warningStreamPrint(LOG_INIT_HOMOTOPY, 0, "No initialEquation_lambda0 was generated. Using normal initial equation system with lambda=0 instead.");

@AnHeuermann AnHeuermann deleted the hackLambda0Init branch November 24, 2021 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants