Skip to content

Commit

Permalink
automatically create a parallel pool if parallel options on
Browse files Browse the repository at this point in the history
  • Loading branch information
GHilmarG committed Mar 13, 2019
1 parent 8a32614 commit 686fbf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MatrixAssemblySSHEETtransient2HD.m
Expand Up @@ -47,7 +47,7 @@
% vector over all elements for each integartion point

if CtrlVar.Parallel.uvhAssembly.parfor.isOn
poolobj = gcp('nocreate');
poolobj = gcp;
Mworkers=poolobj.NumWorkers;
else
Mworkers=1;
Expand Down
2 changes: 1 addition & 1 deletion uvAssemblySPMD.m
Expand Up @@ -2,7 +2,7 @@


if isempty(CtrlVar.Parallel.uvAssembly.spmd.nWorkers)
poolobj = gcp('nocreate');
poolobj = gcp;
CtrlVar.Parallel.uvAssembly.spmd.nWorkers=poolobj.NumWorkers;
end

Expand Down

0 comments on commit 686fbf6

Please sign in to comment.