2010-03-30 19:14:00 +08:00
|
|
|
function invoke_openEMS( opts )
|
|
|
|
|
|
|
|
if nargin < 1
|
|
|
|
opts = '';
|
|
|
|
end
|
2010-04-21 23:34:21 +08:00
|
|
|
% opts = [opts ' --disable-dumps'];
|
|
|
|
% opts = [opts ' --debug-material'];
|
|
|
|
% opts = [opts ' --engine=multithreaded'];
|
|
|
|
% opts = [opts ' --engine=sse'];
|
2010-03-30 19:14:00 +08:00
|
|
|
|
|
|
|
filename = mfilename('fullpath');
|
|
|
|
dir = fileparts( filename );
|
|
|
|
openEMS_Path = [dir '/../../'];
|
|
|
|
|
|
|
|
command = [openEMS_Path 'openEMS.sh ' opts];
|
|
|
|
disp(command);
|
2010-03-31 21:39:07 +08:00
|
|
|
system(command);
|