Skip to content

Commit 55e3790

Browse files
committed
try catch for parallel computing
1 parent e475edf commit 55e3790

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

code/GBdist4.m

+7-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,13 @@
8080
[~,warnID] = lastwarn();
8181
[~] = ver('parallel');
8282
if ~strcmp(warnID,'MATLAB:ver:NotFound')
83-
D = parallel.pool.DataQueue;
84-
afterEach(D, @nUpdateProgress);
83+
try
84+
D = parallel.pool.DataQueue;
85+
afterEach(D, @nUpdateProgress);
86+
catch
87+
warn("Could start parallel pool")
88+
end
89+
8590
else
8691
waitbarQ = false;
8792
end

0 commit comments

Comments
 (0)