Draft: Fix GPU halo exchange check
Recent fix introduced an incorrect nullptr check on gpuHaloExchange which is a vector of pointers that is never nullptr. This change fixes the check and adds a helper inline function to avoid minor code duplication.
Fixes #4492 (closed)
Edited by Szilárd Páll