File: SetupMPI.m

package info (click to toggle)
openems 0.0.35%2Bgit20190103.6a75e98%2Bdfsg.1-3.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,544 kB
  • sloc: cpp: 40,417; python: 2,028; yacc: 580; makefile: 459; lex: 350; sh: 176; ruby: 19
file content (17 lines) | stat: -rw-r--r-- 540 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function FDTD = SetupMPI(FDTD, varargin)
% function FDTD = SetupMPI(FDTD, varargin);
%
% % example, split the FDTD mesh in 2 equal parts in x-direction
% % and split the FDTD mesh in 3 parts in z-direction, split at z=-500 and z=500
% % this will need a Settings.MPI.NrProc of 2*3=6
% FDTD = SetupMPI(FDTD,'SplitN_X',2 ,'SplitPos_Z', '-500,500');
% 
% See also RunOpenEMS_MPI
% 
% openEMS matlab interface
% -----------------------
% author: Thorsten Liebig

for n=1:(nargin-1)/2
    FDTD.MPI.ATTRIBUTE.(varargin{2*n-1})=varargin{2*n};
end