diff --git a/raster/r.patch/main.c b/raster/r.patch/main.c index 4744538eac3..4237172ddb3 100644 --- a/raster/r.patch/main.c +++ b/raster/r.patch/main.c @@ -113,6 +113,10 @@ int main(int argc, char *argv[]) "threads setting.")); nprocs = 1; #endif + if (nprocs > 1 && G_find_raster("MASK", G_mapset()) != NULL) { + G_warning(_("Parallel processing disabled due to active MASK.")); + nprocs = 1; + } use_zero = (zeroflag->answer); no_support = (nosupportflag->answer);