Skip to content

Commit

Permalink
do not set explicite socket cluster type
Browse files Browse the repository at this point in the history
Setting explicit socket cluster type to "SOCK" is unnecessary:
parallel has better default. In addition, type="SOCK" adds an
undeclared dependence on snow.
  • Loading branch information
jarioksa committed Mar 2, 2021
1 parent ebdeb2c commit 1217104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/sampleMcmc.R
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ sampleMcmc =
}

if(nParallel > 1){
cl = makeCluster(nParallel, type="SOCK")
cl = makeCluster(nParallel)
clusterExport(cl, c("hM","nChains","transient","samples","thin","verbose","adaptNf","initSeed","initPar","updater",
"X1", "Tr", "Y", "distr", "Pi", "C", "nr",
"mGamma", "iUGamma", "V0", "f0", "aSigma", "bSigma", "rhopw",
Expand Down

0 comments on commit 1217104

Please sign in to comment.