A list for the developers of CellML tools

Text archives Help


[cellml-dev] A couple of CellML API questions


Chronological Thread 
  • From: alan.garny at dpag.ox.ac.uk (Alan Garny)
  • Subject: [cellml-dev] A couple of CellML API questions
  • Date: Tue, 13 Dec 2011 18:05:56 +0100

Hi there,



Trying to find my way around the CellML API (C++ binding), I have two main
questions at this stage:

- Is there a way to tell whether a model needs a 'simple' ODE
solver (e.g. CVODE
<https://computation.llnl.gov/casc/sundials/description/description.html#des
cr_cvode> ) or a DAE solver (e.g. IDA
<https://computation.llnl.gov/casc/sundials/description/description.html#des
cr_ida> ) to be computed? It seems to me, from looking at the source code of
both the CellML API and OpenCell, that there might not be. I mean, I
couldn't find anything in the CellML API while, in OpenCell, generation of
ODE or DAE code seems to be based on the choice of integration scheme (i.e.
IDA or not). This being said, could CodeInformation::algebraicIndexCount()
<http://cellml-api.sourceforge.net/latest-release/interfacecellml__services_
1_1_code_information.html#a6c71ad34951cb150a7f89d2252a848ec> be a way to
determine what I am after?

- I need to convert CellML models to binary code (using the LLVM
<http://www.llvm.org/> -JIT AP), so I don't think I can rely on the CeLEDS
and CeLEDSExporter services for this task? Ideally, there would be a way,
using the CellML API, to get a procedural representation of the model,
making it 'easy' then to generate binary code. Right now, I am thinking of
writing my own code based on that of CodeGenerationState::GenerateCode(),
but needless to say that I would rather not go that route. So, have I missed
something or should I sit down and get coding.?



Cheers, Alan.

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.cellml.org/pipermail/cellml-tools-developers/attachments/20111213/e5eb5d14/attachment.htm>




Archive powered by MHonArc 2.6.18.

Top of page