Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-291

ode.nonstiff.AdaptiveStepsizeIntegrator.filterStep(double h, boolean forward, boolean acceptSmall) can generate misleading Exception message

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Labels:
      None

      Description

      ode.nonstiff.AdaptiveStepsizeIntegrator.filterStep(double h, boolean forward, boolean acceptSmall) can generate misleading Exception message, for example:

      org.apache.commons.math.ode.IntegratorException: minimal step size (0) reached, integration needs 0

      This is because the message uses

      {0}

      and

      {1}

      to report the value of doubles.

      The code should really use a number format which allows for more decimal places, e.g.

      "minimal step size (

      {0,number,#.#########}

      ) reached, integration needs

      {1,number,#.##########}

      ",

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb@apache.org Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: