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

Simple Bug Fixes for dvec.h and enuts.h #6

Merged
merged 4 commits into from
Mar 31, 2024

Conversation

dfvankomen
Copy link
Collaborator

Fixes a few bugs regarding memory leaks (see enuts.h, where one of the vectors wasn't being properly deleted).

Additionally, for a very small penalty, the program can now allocate memory that is initialized to all zeros (using calloc instead of malloc). This avoids nans in the padding regions beyond the physical region. This is especially useful for some mathematical methods that need to always touch beyond boundaries even if they are not used or overwritten. (Matrix multiplication on the blocks is the biggest reason for this addition.)

There was also an issue with dvec exiting too early on inactive meshes which lead to strange behavior when trying to run simulations.

@dfvankomen dfvankomen merged commit 6468d48 into paralab:master Mar 31, 2024
1 check 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.

None yet

1 participant