octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49918] odeset and Stats option is case sensit


From: Rik
Subject: [Octave-bug-tracker] [bug #49918] odeset and Stats option is case sensitive
Date: Fri, 23 Dec 2016 06:13:45 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

URL:
  <http://savannah.gnu.org/bugs/?49918>

                 Summary: odeset and Stats option is case sensitive
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Thu 22 Dec 2016 10:13:44 PM PST
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: cdf
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

I don't know how Matlab handles the Stats option to odeset, but Octave behaves
in a case-sensitive manner.


odeset ('Stats', 'ON')
ans =


  scalar structure containing the fields:

    Stats = ON
    AbsTol = [](0x0)
    BDF = [](0x0)
    Events = [](0x0)
    InitialSlope = [](0x0)
    InitialStep = [](0x0)
    JConstant = [](0x0)
    JPattern = [](0x0)
    Jacobian = [](0x0)
    MStateDependence = [](0x0)
    Mass = [](0x0)
    MassSingular = [](0x0)
    MaxOrder = [](0x0)
    MaxStep = [](0x0)
    MvPattern = [](0x0)
    NonNegative = [](0x0)
    NormControl = [](0x0)
    OutputFcn = [](0x0)
    OutputSel = [](0x0)
    Refine = [](0x0)
    RelTol = [](0x0)
    Vectorized = [](0x0)


But if you look at the code in the m-files, for example ode45.m, you find


  ## Print additional information if option Stats is set
  if (strcmp (odeopts.Stats, "on"))


It seems like these calls should be replaced with strcmpi.  It also looks like
the option NormControl requires the same change.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49918>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]