function A = loadobj(A)
;%#ok

%LOADOBJ Overloaded for codistributed arrays
%   
%   See also LOADOBJ, CODISTRIBUTED.


%   Copyright 2008-2022 The MathWorks, Inc.

aDist = getCodistributor(A);
storedNumWorkers = aDist.hNumWorkers();
if storedNumWorkers ~= spmdSize
    warning(message('parallel:distributed:InvalidNumberOfWorkers', storedNumWorkers, spmdSize));
end
