Menu

#1 Parameters with undefined values in odeSolver

open
nobody
None
8
2006-06-07
2006-06-07
No

These are patch files for SOSlib 1.6.0 for the bug with
the same summary as this patch.

Two patch files for the bug you observed can be found
in the attachment.

Basically, one needs to avoid the dangerous

* Parameter_createWith(.... Parameter_getValue ...)

for params, species and compartments in odeConstruct.c,
(the code which constructs a new internal SBML model,
in which reactions are
replaced by rate rules (i.e. ODEs))

and not use and unchecked

* Parameter_getValue

in cvodedata.c,
(when writing initial values (ODE variables) or
constants (ODE parameters)
to the data structure used by the integrator.)

When no value is available, a fatal error is stored, and
IntegratorInstance_create(...) returns NULL.

This patch doesn't care however, if a parameter that is
defined by an
assignment rule (a in our example) does not have a
value, as this value
would be overruled by the assignment anyways. I think,
this should be
correct.

The output of our command-line program now should be:

odeSolver/odeSolver valtest.xml Fatal Error 20000
No value found for
parameter b
Exit 1

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.