update handling MPI + matlab doc

openEMS_MPI.pro is used to compile openEMS with MPI support
do: qmake openEMS_MPI.pro & make -j
pull/1/head
Thorsten Liebig 2011-10-27 13:35:02 +02:00
parent ed144229ac
commit 5370df360c
4 changed files with 18 additions and 15 deletions

View File

@ -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
% -----------------------

View File

@ -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
% -----------------------

View File

@ -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
###############################################################################

5
openEMS_MPI.pro Normal file
View File

@ -0,0 +1,5 @@
# enable MPI support
!win32:CONFIG += MPI_SUPPORT
include(openEMS.pro)