Fix if statement to apply to fflush

Even though the `fflush()` is on the same line as the `fprintf(stderr, ...` statement, it is not part of the `if` and is therefore, executed even if the `wdebug` is not active.  This results in `fflush()` being called more than it should.  

Added parenthesis to property protect the fflush call.
This commit is contained in:
Greg Sjaardema 2021-03-18 13:49:07 -06:00 committed by GitHub
parent a9ba3c53b1
commit 7732ef1c88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,8 +206,9 @@ NCZ_transfer(struct Common* common, NCZSlice* slices)
common, &chunkodom)))
goto done;
if(wdebug >= 4)
if(wdebug >= 4) {
fprintf(stderr,"allprojections:\n%s",nczprint_allsliceprojections(common->rank,common->allprojections)); fflush(stderr);
}
wholechunk = iswholechunk(common,slices);