Skip to content

Eliminate most allocations#101

Draft
Arpit-Babbar wants to merge 1 commit into
ma/nsefrom
ab/nse_type_stable
Draft

Eliminate most allocations#101
Arpit-Babbar wants to merge 1 commit into
ma/nsefrom
ab/nse_type_stable

Conversation

@Arpit-Babbar

Copy link
Copy Markdown
Collaborator

No description provided.

Δ = mesh.Δeffective_l

# Add call to a function that takes all the above arguments as inputs
viscous_rhs_el_type_stable!(u, connijk, neqs, nelem, ngl, dψ, ω,

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is a function layer. The types have already been inferred at this point, and the type inference will not come in the way of computation. This drastically reduced the allocations, but not the performance. To do that, we probably need to use static vectors the way Trixi does it.

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.

1 participant