AMReX-Codes / amrex

AMReX: Software Framework for Block Structured AMR
https://amrex-codes.github.io/amrex
Other
554 stars 353 forks source link

Use BL_PROFILE instead of BL_PROFILE_VAR to time in knapsack()swap #4134

Closed atmyers closed 2 months ago

atmyers commented 2 months ago

This timer was using BL_PROFILE_VAR without an associated BL_PROFILE_STOP, resulting in unused variable warnings. It seems to me that we can just use BL_PROFILE here and rely on scope to stop the timer.

The proposed changes: