forked from inconvergent/xmsmfem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxBroadcast.m
44 lines (37 loc) · 1.2 KB
/
xBroadcast.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
function [g,rock,cg,mob,bc,...
src,overlap,facetrans,...
weighting,activeBnd] = ...
xBroadcast(g,rock,cg,mob,bc,...
src,overlap,facetrans,...
weighting,activeBnd)
% Helper function for the xmsmfem module for MRST.
% distributes initialized Composite variables before they can be used on workers
% See xExample to see how this function is used.
%
% EXAMPLE:
% See xExample for a complete example of usage.
%
% SEE ALSO:
% xExample, xInitWorkers, xComputeMimeticIP,
% xDistributeIP, xGenerateCoarseSystem, xEvalBasisFunc
%{
A part of the xmsmfem module for MRST:
http://www.sintef.no/Projectweb/MRST/
Adapted from the msmfem module with the Parallel Computing Toolbox
Released under the GNU General Public License:
http://www.gnu.org/licenses/gpl.html
Written by
Anders Hoff 2012
http://master.andershoff.net
%}
g = labBroadcast(1,g);
rock = labBroadcast(1,rock);
cg = labBroadcast(1,cg);
mob = labBroadcast(1,mob);
bc = labBroadcast(1,bc);
src = labBroadcast(1,src);
overlap = labBroadcast(1,overlap);
facetrans = labBroadcast(1,facetrans);
weighting = labBroadcast(1,weighting);
activeBnd = labBroadcast(1,activeBnd);
end