Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to interpret a model (initially algebraic and ODE models) #1218

Open
agarny opened this issue Apr 7, 2024 · 0 comments · May be fixed by #1220
Open

Make it possible to interpret a model (initially algebraic and ODE models) #1218

agarny opened this issue Apr 7, 2024 · 0 comments · May be fixed by #1220
Assignees
Labels
New feature Additional feature

Comments

@agarny
Copy link
Contributor

agarny commented Apr 7, 2024

In some cases (e.g., from WebAssembly), to generate some code with the view of compiling it on the fly is next to impossible at this stage (at least, using LLVM+Clang; see opencor/libopencor#223). For this reason, it would be nice to have a way to interpret a model. This could (greatly) take advantage of what has been done for the Generator, especially when it comes to which equation should be evaluated and when.


Technically speaking, the interpreter should probably not be part of libCellML but rather libOpenCOR. However, to have it in libOpenCOR would require duplicating most of the current Generator code, which would be a very bad idea. So, so far, the plan has been to refactor the Generator code so that it can not only generate C and Python code, but also generate the structure needed to interpret a model.

@agarny agarny added the New feature Additional feature label Apr 7, 2024
@agarny agarny self-assigned this Apr 7, 2024
@agarny agarny changed the title Make it possible to interpret a model Make it possible to interpret a model (initially algebraic and ODE models) Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New feature Additional feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant