view scripts/ode/module.mk @ 20631:00caf63edcdf

maint: Remove obsolete ODE options from odeset/odeget/ode45. * odepkg_structure_check.m: Deleted file, replaced in code with ode_struct_value_check() * scripts/ode/module.mk: Remove odepkg_structure_check.m from build system. * ode45.m: Just print_usage(), rather than displaying help, if incorrect number of arguments supplied. Replace calls to odepkg_structure_check() with calls to ode_struct_value_check(). Use error ID "Octave:invalid-input-arg" rather than "OdePkg:InvalidArgument". Use local variables TimeStepNumber and TimeStepSize since these are no longer a default part of an ODE options structure. Remove options that are no longer a part of ODE options structure. * odeget.m: Remove unused options. Allow unknown options through, but display a warning. * odeset.m: Remove unused options. Allow unknown options through, but dispaly a warning. Use special for loop over structure to simplify code. Add BIST tests for custom user-defined options and for input validation. * ode_struct_value_check.m: Rewrite docstring. Return input ode_struct as output so that function can replace odepk_structure_check. Use meaningful input variable name ode_struct rather than arg. Use special for loop syntax over structure to simplify code. Remove checking for obsolete, non-Matlab options. Use error ID "Octave:invalid-input-arg" rather than "OdePkg:InvalidArgument". Preface all error and warning messages with the name of the calling function. * AbsRel_Norm.m, integrate_const.m, integrate_n_steps.m: Use error ID "Octave:invalid-input-arg" rather than "OdePkg:InvalidArgument". * odepkg_event_handle.m: Rephrase sentence in docstring.
author Rik <rik@octave.org>
date Fri, 16 Oct 2015 10:31:02 -0700
parents e5f36a7854a5
children 80e630b37ba1
line wrap: on
line source

FCN_FILE_DIRS += \
  scripts/ode \
  scripts/ode/private

scripts_ode_PRIVATE_FCN_FILES = \
  scripts/ode/private/AbsRel_Norm.m \
  scripts/ode/private/integrate_adaptive.m \
  scripts/ode/private/integrate_const.m \
  scripts/ode/private/integrate_n_steps.m \
  scripts/ode/private/kahan.m \
  scripts/ode/private/odepkg_event_handle.m \
  scripts/ode/private/ode_rk_interpolate.m \
  scripts/ode/private/ode_struct_value_check.m \
  scripts/ode/private/runge_kutta_45_dorpri.m \
  scripts/ode/private/starting_stepsize.m

scripts_ode_FCN_FILES = \
  scripts/ode/ode45.m \
  scripts/ode/odeset.m \
  scripts/ode/odeget.m

scripts_odedir = $(fcnfiledir)/ode

scripts_ode_DATA = $(scripts_ode_FCN_FILES)

scripts_ode_privatedir = $(fcnfiledir)/ode/private

scripts_ode_private_DATA = $(scripts_ode_PRIVATE_FCN_FILES)

FCN_FILES += \
  $(scripts_ode_FCN_FILES) \
  $(scripts_ode_PRIVATE_FCN_FILES)

PKG_ADD_FILES += scripts/ode/PKG_ADD

DIRSTAMP_FILES += scripts/ode/$(octave_dirstamp)