diff --git a/R/runSWATpar.R b/R/runSWATpar.R index 16bdc16..f89bfb7 100644 --- a/R/runSWATpar.R +++ b/R/runSWATpar.R @@ -185,7 +185,7 @@ runSWATSequential <- function(coreNumber, # Call swat.exe file exeFile <- basename(swatExe) - if(!file.exists(exeFile) file.copy(swatExe, toDir) + if(!file.exists(exeFile)) file.copy(swatExe, toDir) # Check platform if(.Platform$OS.type == "unix") {