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

Inconsistencies between interface specification / CLI-interface / C-API #334

Closed
4 of 8 tasks
schmoelder opened this issue Nov 29, 2024 · 1 comment · Fixed by #335 or #339
Closed
4 of 8 tasks

Inconsistencies between interface specification / CLI-interface / C-API #334

schmoelder opened this issue Nov 29, 2024 · 1 comment · Fixed by #335 or #339

Comments

@schmoelder
Copy link
Contributor

schmoelder commented Nov 29, 2024

This is a collection of smaller issues that need to be addressed to ensure consistency in the simulation output.

  • [CLI] SOLUTION_VOLUME has shape (NTIME, 1), should have (NTIME)
  • CSTR returns axial_coordinates and particle_coordinates. Should not return coordinates
    • [CLI]
    • [C-API]
  • LRMP returns axial_coordinates and particle_coordinates. Should only return axial_coordinates
    • [CLI]
    • [C-API]
  • [C-API] GRM squashes dimensions for solution_inlet/outlet if NCOMP=1. Should not do that. (Fixed in cadet/CADET-Python@2211aab)
@schmoelder
Copy link
Contributor Author

schmoelder commented Dec 6, 2024

Damn, I didn't properly cover some of the edge cases in the C-API, so there are still some issues regarding the coordinates.

For reference, these are the relevant lines:

cdtResult getPrimaryCoordinates(cdtDriver* drv, int unitOpId, double const** data, int* nCoords)

cdtResult getSecondaryCoordinates(cdtDriver* drv, int unitOpId, double const** data, int* nCoords)

cdtResult getParticleCoordinates(cdtDriver* drv, int unitOpId, int parType, double const** data, int* nCoords)

If coordinates are not stored or singleton dimensions are squeezed, it should return cdtDataNotStored.

To test this, see also cadet/CADET-Python#42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
1 participant