From e251ffd2431b96434b51c14135ac2204a1dc3e0a Mon Sep 17 00:00:00 2001 From: nguyenta Date: Wed, 6 Mar 2024 14:26:57 +0100 Subject: [PATCH] Update runSWATpar.R --- R/runSWATpar.R | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/R/runSWATpar.R b/R/runSWATpar.R index 0f1fcd7..e97d757 100644 --- a/R/runSWATpar.R +++ b/R/runSWATpar.R @@ -189,10 +189,8 @@ runSWATSequential <- function(coreNumber, # Check platform if(.Platform$OS.type == "unix") { system(paste0("./", trimws(exeFile[length(exeFile)]))) - } else if (.Platform$OS.type == "windows") { - system(trimws(exeFile[length(exeFile)])) } else { - stop("Unknown platform in runSWATpar.R") + system(trimws(exeFile[length(exeFile)])) } # Check first run