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

Allocations in RelaxationCallback #11

Open
ranocha opened this issue Jun 7, 2023 · 1 comment
Open

Allocations in RelaxationCallback #11

ranocha opened this issue Jun 7, 2023 · 1 comment

Comments

@ranocha
Copy link
Collaborator

ranocha commented Jun 7, 2023

function convex_combination(gamma, uold, unew)
@. uold + gamma * (unew - uold)
end

This will allocate new vectors whenever it's called. That's of course totally fine for now but may slow down the process a bit when you use bigger state vectors (increased grid refinement).

@JoshuaLampert
Copy link
Owner

Ok, thanks. I'll keep that in mind and fix it once it seems necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants