Skip to content

Commit

Permalink
Number of cores should never be lower than 1 (#1494)
Browse files Browse the repository at this point in the history
  • Loading branch information
Felixmil authored Nov 5, 2024
1 parent bdc9665 commit dee2928
Show file tree
Hide file tree
Showing 23 changed files with 181 additions and 181 deletions.
2 changes: 1 addition & 1 deletion R/ospsuite-env.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ospsuiteEnv$pathSeparator <- "|"

# Number of cores to use for simulations and sensitivity. Default to number of cores on the machine - 1
ospsuiteEnv$numberOfCores <- function() {
parallel::detectCores() - 1
max(parallel::detectCores() - 1, 1)
}

# Specifies the default behavior fo progress visualization. By default FALSE
Expand Down
Loading

0 comments on commit dee2928

Please sign in to comment.