Skip to content

Added cpp2 code generator #254

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

Merged

Conversation

bergm
Copy link
Contributor

@bergm bergm commented Nov 12, 2024

Hello Cyrille,
as I mentioned somewhen, I added some time ago as an experiment a cpp2 code generator, which creates pure structs and no accessors for state, rate, exogeneous and auxiliary structs.
I fixed now all the issues and at least for the current temperature models it generates correct code and running that code gives the same results as the cpp generated code.
Nevertheless also the cpp2 code generator is not really satisfying and in my opinion we need to update the general code generation approach for nested composites. I might try this for C++ code, but for the moment I just would like to get the cpp2 code added to the repository, so it's no in a local branch of our (ZALF) copy of PyCrop2ML.
Best,
Michael

@cyrillemidingoyi cyrillemidingoyi merged commit 174d673 into AgriculturalModelExchangeInitiative:master Jan 7, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants