update handling MPI + matlab doc
openEMS_MPI.pro is used to compile openEMS with MPI support do: qmake openEMS_MPI.pro & make -jpull/1/head
parent
ed144229ac
commit
5370df360c
|
@ -4,18 +4,15 @@ function RunOpenEMS_MPI(Sim_Path, Sim_File, opts, Settings)
|
|||
% Run an openEMS simulation with MPI support
|
||||
%
|
||||
% % mpi binary path on all nodes needed
|
||||
% Settings.MPI.Binary = '~/devel/openEMS/openEMS_MPI';
|
||||
% Settings.MPI.Binary = '/opt/openEMS/openEMS';
|
||||
% % number of processes to run
|
||||
% Settings.MPI.NrProc = 2;
|
||||
% Settings.MPI.NrProc = 3;
|
||||
% % define the mpi hosts :
|
||||
% Settings.MPI.Hosts = {'host1','host2','host3'};
|
||||
%
|
||||
% % optional:
|
||||
% % define a hostfile and number of host to boot the mpd daemon:
|
||||
% Settings.MPI.HostFile = '/home/thorsten/ate-pc9x.hosts';
|
||||
% Settings.MPI.TotalNum = 2;
|
||||
%
|
||||
% RunOpenEMS_MPI(Sim_Path, Sim_File, NrProc, opts, Settings)
|
||||
% RunOpenEMS(Sim_Path, Sim_File, NrProc, opts, Settings)
|
||||
%
|
||||
% See also WriteOpenEMS, RunOpenEMS
|
||||
% See also SetupMPI, WriteOpenEMS, RunOpenEMS
|
||||
%
|
||||
% openEMS matlab interface
|
||||
% -----------------------
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
function FDTD = SetupMPI(FDTD, varargin)
|
||||
% function FDTD = SetupMPI(FDTD, varargin);
|
||||
%
|
||||
% % example
|
||||
% FDTD = SetupMPI(FDTD,'SplitPos_X', '-500,500','SplitPos_Z', '-500,500');
|
||||
% % 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
|
||||
% -----------------------
|
||||
|
|
|
@ -11,7 +11,7 @@ INCLUDEPATH += ../CSXCAD \
|
|||
../fparser \
|
||||
../tinyxml
|
||||
LIBS += -L../CSXCAD -lCSXCAD
|
||||
CONFIG = debug_and_release
|
||||
CONFIG += debug_and_release
|
||||
|
||||
###############################################################################
|
||||
# CONFIG SECTION
|
||||
|
@ -24,9 +24,6 @@ CONFIG = debug_and_release
|
|||
# to output length in terms of the drawing unit, uncomment:
|
||||
# DEFINES += OUTPUT_IN_DRAWINGUNITS
|
||||
|
||||
# enable MPI support
|
||||
#!win32:CONFIG += MPI_SUPPORT
|
||||
|
||||
# CONFIG SECTION
|
||||
###############################################################################
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
# enable MPI support
|
||||
!win32:CONFIG += MPI_SUPPORT
|
||||
|
||||
include(openEMS.pro)
|
||||
|
Loading…
Reference in New Issue