AMReX-Astro / Castro

Castro (Compressible Astrophysics): An adaptive mesh, astrophysical compressible (radiation-, magneto-) hydrodynamics simulation code for massively parallel CPU and GPU architectures.
http://amrex-astro.github.io/Castro
Other
299 stars 97 forks source link

optimize capture of BCs in ambient_fill #2831

Closed zingale closed 5 months ago

zingale commented 5 months ago

we were capturing the entire bcs array by copy even though we only ever used the density component. This reduces the side of the copy. This was flagged by coverity

PR summary

PR motivation

PR checklist