diff --git a/raster/r.sim/r.sim.sediment/main.c b/raster/r.sim/r.sim.sediment/main.c index 8d49778d408..53252b9891f 100644 --- a/raster/r.sim/r.sim.sediment/main.c +++ b/raster/r.sim/r.sim.sediment/main.c @@ -387,7 +387,7 @@ int main(int argc, char *argv[]) threads, abs(threads)); threads = abs(threads); } - if (threads > 1 && Rast_mask_is_present()) { + if (threads > 1 && G_find_raster("MASK", G_mapset()) != NULL) { G_warning(_("Parallel processing disabled due to active mask.")); threads = 1; } diff --git a/raster/r.sim/r.sim.water/main.c b/raster/r.sim/r.sim.water/main.c index 3c0f045a534..f78c05fc648 100644 --- a/raster/r.sim/r.sim.water/main.c +++ b/raster/r.sim/r.sim.water/main.c @@ -415,7 +415,7 @@ int main(int argc, char *argv[]) threads, abs(threads)); threads = abs(threads); } - if (threads > 1 && Rast_mask_is_present()) { + if (threads > 1 && G_find_raster("MASK", G_mapset()) != NULL) { G_warning(_("Parallel processing disabled due to active mask.")); threads = 1; }