invoke_openEMS.m got lost somehow...

pull/1/head
Thorsten Liebig 2010-05-03 22:09:40 +02:00
parent 4cff6eebc5
commit e64c67de11
1 changed files with 25 additions and 0 deletions

25
matlab/invoke_openEMS.m Normal file
View File

@ -0,0 +1,25 @@
function invoke_openEMS( opts )
if nargin < 1
error 'specify the xml file to simulate'
end
% opts = [opts ' --disable-dumps'];
% opts = [opts ' --debug-material'];
% opts = [opts ' --debug-boxes'];
% opts = [opts ' --engine=sse'];
% opts = [opts ' --engine=multithreaded'];
filename = mfilename('fullpath');
dir = fileparts( filename );
openEMS_Path = [dir filesep '..' filesep];
if isunix
openEMS_Path = [openEMS_Path 'openEMS.sh'];
else
openEMS_Path = [openEMS_Path 'openEMS'];
end
command = [openEMS_Path ' ' opts];
disp( ['invoking openEMS simulator: ' command] );
system(command);