Skip to content

Conversation

@dylan-copeland
Copy link
Collaborator

@dylan-copeland dylan-copeland commented Jul 11, 2024

This PR has breaking changes to the API, requiring updates to any application using libROM.

The goal is to replace raw pointers by smart pointers in the library. This has also been done in some examples, but not all, for the purpose of testing the library for memory leaks. The following examples have been run with valgrind successfully:
mixed_nonlinear_diffusion
parametric_tw_csv
parametric_heat_conduction
de_dg_advection_greedy
poisson_local_rom_greedy

The use of smart pointers has fixed memory issues in the library and the examples. It has also simplified many things and reduced the number of lines of code significantly, making libROM not only safer but also more readable.

… functions with pointer arguments, and fixed a memory leak.
@dylan-copeland dylan-copeland added the WIP Work in progress label Jul 11, 2024
@dylan-copeland dylan-copeland added RFR Ready for review and removed WIP Work in progress labels Nov 20, 2024
Copy link
Collaborator

@ckendrick ckendrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good set of changes to help modernize the code. I had a few very minor comments, but otherwise this looks good to me.

@ckendrick ckendrick added the LGTM Trigger for running regression tests label Jan 15, 2025
Copy link
Collaborator

@dreamer2368 dreamer2368 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for such an extensive work and all the miscellaneous code cleanup. I left some comments here and there. But they are more of questions out of curiosity, me wondering about the rationale behind your choice of smart/raw pointers.

@dylan-copeland dylan-copeland merged commit 5f9dacd into master Feb 3, 2025
4 checks passed
@dylan-copeland dylan-copeland deleted the smart-ptr branch February 3, 2025 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

LGTM Trigger for running regression tests RFR Ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants