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

Adding more smart pointers #294

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open

Adding more smart pointers #294

wants to merge 22 commits into from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant