From: Rainer M. <ra...@tb...> - 2009-01-21 01:15:09
|
Eric, I am so sorry! I completely forgot about this email over the holidays (when there was too much stress to reply immediately, als because i didnt think of the simple answer given below at first). > odeModel_t* = ODEModel_createFromFile("model.xml"); > > Is that data structure that big ? Of course that depends on the size of > the model (190kB in my case), Did you solve your problem yet? One problem is that your are creating the model directrly from file, which means that for each instance you have a separate copy of the SBML model structure, while in principle you would only need one SBML model and could create the odeModel with odeModel_t* = ODEModel_create(Model_t *sbml) I guess that would save a lot of memory, esp. if the SBML has additional annotations! Rainer On Mon, 15 Dec 2008, Eric Fernandez wrote: > Hi, > > I get a segfault when trying to create from file around 70 odeModel*_t: > > odeModel_t* = ODEModel_createFromFile("model.xml"); > > Is that data structure that big ? Of course that depends on the size of > the model (190kB in my case), but I am surprised to get a segfault. > > Any advice ? I know I could only use pointers, but I'd like to make > "evolve" these models within a cell population, therefore I thought it > would be better to have one model per cell. If there is no other > workaround I'll change the parameters "on the fly" before doing an > integration and keep one model pointer for all cells. > > Thanks, > Eric > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > sbmlsolver-discuss mailing list > sbm...@li... > https://lists.sourceforge.net/lists/listinfo/sbmlsolver-discuss > |