typos
parent
c45cd4ab70
commit
fdd8f08a7b
|
@ -7,10 +7,10 @@ clear
|
||||||
close all
|
close all
|
||||||
drawnow
|
drawnow
|
||||||
|
|
||||||
Octave = exist('OCTAVE_VERSION','var') ~= 0;
|
if isOctave
|
||||||
|
|
||||||
if Octave
|
|
||||||
confirm_recursive_rmdir(0);
|
confirm_recursive_rmdir(0);
|
||||||
|
page_screen_output(0); % do not buffer output
|
||||||
|
page_output_immediately(1); % do not buffer output
|
||||||
end
|
end
|
||||||
|
|
||||||
folder = fileparts( mfilename( 'fullpath' ) );
|
folder = fileparts( mfilename( 'fullpath' ) );
|
||||||
|
@ -42,6 +42,7 @@ for o=1:numel(options)
|
||||||
% execute function
|
% execute function
|
||||||
disp( [datestr(now) ' executing: ' folders(f).name '/' scripts(s).name] );
|
disp( [datestr(now) ' executing: ' folders(f).name '/' scripts(s).name] );
|
||||||
[~,fname] = fileparts( scripts(s).name );
|
[~,fname] = fileparts( scripts(s).name );
|
||||||
|
fflush(1); % flush stdout
|
||||||
pass = feval( fname, options{o}, 'run_testsuite' );
|
pass = feval( fname, options{o}, 'run_testsuite' );
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -11,26 +11,26 @@ function RunOpenEMS(Sim_Path, Sim_File, opts, Settings)
|
||||||
%
|
%
|
||||||
% opts: list of openEMS options
|
% opts: list of openEMS options
|
||||||
% possible options:
|
% possible options:
|
||||||
% --disable-dumps Disable all field dumps for faster simulation
|
% --disable-dumps Disable all field dumps for faster simulation
|
||||||
% --debug-material Dump material distribution to a vtk file for debugging
|
% --debug-material Dump material distribution to a vtk file for debugging
|
||||||
% --debug-PEC Dump metal distribution to a vtk file for debugging
|
% --debug-PEC Dump metal distribution to a vtk file for debugging
|
||||||
% --debug-operator Dump operator to vtk file for debugging
|
% --debug-operator Dump operator to vtk file for debugging
|
||||||
% --debug-boxes Dump e.g. probe boxes to vtk file for debugging
|
% --debug-boxes Dump e.g. probe boxes to vtk file for debugging
|
||||||
% --debug-CSX Write CSX geometry file to debugCSX.xml
|
% --debug-CSX Write CSX geometry file to debugCSX.xml
|
||||||
% --engine=<type> Choose engine type
|
% --engine=<type> Choose engine type
|
||||||
% --engine=fastest fastest available engine (default)
|
% --engine=fastest fastest available engine (default)
|
||||||
% --engine=basic basic FDTD engine
|
% --engine=basic basic FDTD engine
|
||||||
% --engine=sse engine using sse vector extensions
|
% --engine=sse engine using sse vector extensions
|
||||||
% --engine=sse_compressed engine using compressed operator + sse vector extensions
|
% --engine=sse_compressed engine using compressed operator + sse vector extensions
|
||||||
% --engine=MPI engine using compressed operator + sse vector extensions + MPI parallel processing
|
% --engine=MPI engine using compressed operator + sse vector extensions + MPI parallel processing
|
||||||
% --engine=multithreaded engine using compressed operator + sse vector extensions + MPI + multithreading
|
% --engine=multithreaded engine using compressed operator + sse vector extensions + MPI + multithreading
|
||||||
% --numThreads=<n> Force use n threads for multithreaded engine
|
% --numThreads=<n> Force use n threads for multithreaded engine
|
||||||
% --no-simulation only run preprocessing; do not simulate
|
% --no-simulation only run preprocessing; do not simulate
|
||||||
%
|
%
|
||||||
% Additional global arguments
|
% Additional global arguments
|
||||||
% --showProbeDiscretization Show probe discretization information
|
% --showProbeDiscretization Show probe discretization information
|
||||||
% --nativeFieldDumps Dump all fields using the native field components
|
% --nativeFieldDumps Dump all fields using the native field components
|
||||||
% -v,-vv,-vvv Set debug level: 1 to 3
|
% -v,-vv,-vvv Set debug level: 1 to 3
|
||||||
%
|
%
|
||||||
%
|
%
|
||||||
% settings: list of Matlab settings
|
% settings: list of Matlab settings
|
||||||
|
@ -125,7 +125,7 @@ if (enable_ssh)
|
||||||
end
|
end
|
||||||
|
|
||||||
% create a tmp working dir
|
% create a tmp working dir
|
||||||
[status, result] = unix([ssh_command ' ' ssh_options ' ' Settings.SSH.host ' "mktemp -d /tmp/openEMS_XXXXXXXXXXXX"']);
|
[status, result] = unix([ssh_command ' ' ssh_options ' ' Settings.SSH.host ' "mktemp -d /tmp/openEMS_XXXXXXXXXXXX"']);
|
||||||
if (status~=0)
|
if (status~=0)
|
||||||
disp(result);
|
disp(result);
|
||||||
error('openEMS:RunOpenEMS','mktemp failed to create tmp directory!');
|
error('openEMS:RunOpenEMS','mktemp failed to create tmp directory!');
|
||||||
|
@ -147,7 +147,7 @@ if (enable_ssh)
|
||||||
else
|
else
|
||||||
append_unix = [];
|
append_unix = [];
|
||||||
end
|
end
|
||||||
status = unix([ssh_command ' ' ssh_options ' ' Settings.SSH.host ' "cd ' ssh_work_path ' && ' Settings.SSH.bin ' ' Sim_File ' ' opts '"' append_unix]);
|
status = unix([ssh_command ' ' ssh_options ' ' Settings.SSH.host ' "cd ' ssh_work_path ' && ' Settings.SSH.bin ' ' Sim_File ' ' opts '"' append_unix]);
|
||||||
if (status~=0)
|
if (status~=0)
|
||||||
disp(result);
|
disp(result);
|
||||||
error('openEMS:RunOpenEMS','ssh openEMS failed!');
|
error('openEMS:RunOpenEMS','ssh openEMS failed!');
|
||||||
|
|
|
@ -34,9 +34,9 @@ dir = fileparts( filename );
|
||||||
openEMS_Path = [dir filesep '../..' filesep];
|
openEMS_Path = [dir filesep '../..' filesep];
|
||||||
|
|
||||||
if isunix
|
if isunix
|
||||||
openEMS_Path = [openEMS_Path 'openEMS.sh'];
|
openEMS_Path = [openEMS_Path 'openEMS.sh'];
|
||||||
else
|
else
|
||||||
openEMS_Path = [openEMS_Path 'openEMS'];
|
openEMS_Path = [openEMS_Path 'openEMS'];
|
||||||
end
|
end
|
||||||
|
|
||||||
command = [openEMS_Path ' ' opts];
|
command = [openEMS_Path ' ' opts];
|
||||||
|
|
Loading…
Reference in New Issue