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