https://github.com/AMReX-Combustion/PeleC/blob/b3264ded05d82a8be7a9481a659e234e34def090/Exec/RegTests/TGReact/prob.cpp#L187-L189
Copilot found some unnecessary looping. It thinks it should be something like getLevel(lev).maxDerive(...) with a running max, but it's not obvious to me exactly what it should be.
https://github.com/AMReX-Combustion/PeleC/blob/b3264ded05d82a8be7a9481a659e234e34def090/Exec/RegTests/TGReact/prob.cpp#L187-L189
Copilot found some unnecessary looping. It thinks it should be something like
getLevel(lev).maxDerive(...)with a runningmax, but it's not obvious to me exactly what it should be.