Use future::availableCores() to determine the number of cores to use in functions
Expected Behavior
Use future::availableCores()
to determine the number of cores to use in functions. If ncores is not specified in the recipe, set it to the value of future::availableCores()
. If ncores > future::availableCores()
, set it to the value of future::availableCores()
Current Behavior
Number of cores defaults to 1 if ncores is not specified in the recipe. multiApply handles the behavior when ncores > the number of cores available.
Other Relevant Information
This should not be applied to the Scorecards module because ncores > 1 triggers an error, see: https://earth.bsc.es/gitlab/ess/csscorecards/-/issues/7