Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • P preprocessor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DynareDynare
  • preprocessor
  • Issues
  • #66

Provide more informative error messages for problems in model-simplification

The attached file has a variable defined as 0, which causes the preprocessor to replace it by 0. But this results in a cryptic error message

ERROR: Division by zero!
terminate called after throwing an instance of 'DataTree::DivisionByZeroException'

There is no clue for a user how to fix it. GT.mod

Similarly

sim1_linear_fail.mod

returns

Error: In not used in the model block

because the variable is always multiplied by 0.

Edited Mar 17, 2021 by Johannes Pfeifer
Assignee
Assign to
Time tracking