Closed maxvonhippel closed 7 years ago
Parallel pools are automatic now also. If you call a parfor loop without a pool open it will open one automatically. So its probably better to just remove these calls and let it do it automatically once per session.
@harig00 I think where it makes sense to keep the calls would be when we are deciding between using the parallel version or the non parallel version of a script, when two such versions exist. For example, here. Or in the future if we write any scripts which explicitly use specific profiles with parpool (no such code exists currently that I am aware of in Slepian, but it seems possible for some niche use case in the future).
Matlabpool has been deprecated. This PR is fairly trivial; it replaces instances of Matlabpool in Slepian_Alpha with Parpool, the replacement Matlab created to/for Matlabpool.