diff --git a/src/gpu/VirtualFluids_GPU/Calculation/UpdateGrid27.cpp b/src/gpu/VirtualFluids_GPU/Calculation/UpdateGrid27.cpp index a05b1c88895a49632fdc4d146cd8b20830b6138f..beb0fc4119c166e550b732aac6d91180818dc783 100644 --- a/src/gpu/VirtualFluids_GPU/Calculation/UpdateGrid27.cpp +++ b/src/gpu/VirtualFluids_GPU/Calculation/UpdateGrid27.cpp @@ -79,6 +79,7 @@ void UpdateGrid27::refinementAndExchange_streams(int level) coarseToFineWithStream(para.get(), level, para->getParD(level)->intCFBorder.ICellCFC, para->getParD(level)->intCFBorder.ICellCFF, para->getParD(level)->intCFBorder.kCF, para->getParD(level)->offCF, borderStreamIndex); + cudaDeviceSynchronize(); } void UpdateGrid27::refinementAndExchange_noStreams_onlyExchangeInterface(int level)