Exawind / amr-wind

AMReX-based structured wind solver
https://exawind.github.io/amr-wind
Other
103 stars 78 forks source link

Remove duplicated instances of closest_index #1086

Closed moprak-nrel closed 1 month ago

moprak-nrel commented 1 month ago

Summary

The closest_index function seems to have been copy pasted into three different places, consolidating them under one common header file. Moving another unnamed namespace function into the new common header file as well.

Pull request type

Please check the type of change introduced:

Checklist

The following is included:

This PR was tested by running: