Skip to content

Commit

Permalink
set kill=FALSE as default in InitCluster
Browse files Browse the repository at this point in the history
  • Loading branch information
kongdd committed Mar 5, 2022
1 parent 709da45 commit cb529d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Ipaper 0.1.9

- fix `cdo_grid` corner coordinate error.
- set `kill=FALSE` as default in `InitCluster`

# Ipaper 0.1.7

Expand Down
2 changes: 1 addition & 1 deletion R/parallel_init.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ killCluster <- function(){
#' @importFrom doParallel registerDoParallel
#' @importFrom parallel makeCluster
#' @export
InitCluster <- function (ncluster = 4, outfile = "log.txt", FORK = TRUE, kill = TRUE)
InitCluster <- function (ncluster = 4, outfile = "log.txt", FORK = TRUE, kill = FALSE)
{
if (kill) killCluster()
if (file.exists(outfile)) file.remove(outfile)
Expand Down

0 comments on commit cb529d9

Please sign in to comment.