diff --git a/src/vesselbase/ActionWithVessel.cpp b/src/vesselbase/ActionWithVessel.cpp index b0753343eda096825c500219c7e094ea1a25a174..e0628d61b2d5b72d6f6595ca8ac166d033984629 100644 --- a/src/vesselbase/ActionWithVessel.cpp +++ b/src/vesselbase/ActionWithVessel.cpp @@ -273,7 +273,7 @@ void ActionWithVessel::runAllTasks() { // Get number of threads for OpenMP unsigned nt=OpenMP::getNumThreads(); - if( nt*stride*2>nactive_tasks || !threadSafe()) nt=1; + if( nt*stride*2>nactive_tasks || !threadSafe() || !actionIsBridged) nt=1; // Get size for buffer unsigned bsize=0, bufsize=getSizeOfBuffer( bsize );