From: Rainer M. <ra...@tb...> - 2006-10-01 13:54:10
|
Hi, > So I just added set->Indefinitely == 0; to be safe, and made this function > part of the API. This was actually a bug. The indefinetely setting didn't work anymore when afterwards CvodeSettings_setTime was called. Sorry for that. A correct version is in CVS. However, this brings up this up again: Having CvodeSettings_setTimeStep in the API > ... might either > a) cause conflicts with the indefinitely setting or > b) cause potential problems when a user sets a time series with starting > values other then 0. But I guess it shouldn't be a problem. The first time in the passed array will be the next time step for indefinite integration and the user has to know about consequences of indefinite integration anywas. Rainer On Wed, 6 Sep 2006, Rainer Machne wrote: > On Tue, 5 Sep 2006, W Eryk Wolski wrote: > >> Hi, >> >> Can we move the function >> static int CvodeSettings_setTimeSeries(cvodeSettings_t *set, double >> *timeseries, int PrintStep); >> >> to the API interface please? If one wants to set a whole time series >> it is much more straightforward to do this using this function than >> using: >> >> SBML_ODESOLVER_API int CvodeSettings_setTimeStep(cvodeSettings_t *, >> int, double); >> Especially that in case of this function it is not clear how to >> specify the length of the time series to set first. >> >> >> All the best. >> Eryk > > Hi Eryk, > > Your point is good, but I remember that there was a reason to make this > function "static/private". Unfortunately, I currently don't remember what > the reason was ... > > It might either > a) cause conflicts with the indefinitely setting or > b) cause potential problems when a user sets a time series with starting > values other then 0. > > However b seems to be avoided anyways because it is set to 0 and the > first value of the passed time series is ignored. > > So I just added set->Indefinitely == 0; to be safe, and made this function > part of the API. > > Or are there any concerns? Can anyone think of another reason to have this > function private? > Is it un-safe to have a function where two values must correspond to each > other (PrintStep is the size of the array timeseries)? > > James, would you also want to move CvodeSettings_setAdjTimeSeries to the > API? > > If no objections are brought up, I can submit these changes to CVS. > > Rainer > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > sbmlsolver-devel mailing list > sbm...@li... > https://lists.sourceforge.net/lists/listinfo/sbmlsolver-devel > |