From 2a9b39565a746f8fbdbe8ebc0c1cc56b7cfceeef Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Mon, 19 Dec 2011 10:47:38 +0100 Subject: [PATCH] queue: use current matlab or octave as default & docu updates --- matlab/InitQueue.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/matlab/InitQueue.m b/matlab/InitQueue.m index d78ffa0..feec5cc 100644 --- a/matlab/InitQueue.m +++ b/matlab/InitQueue.m @@ -6,6 +6,11 @@ function [queue] = InitQueue(varargin) % This can be used to efficiently run an openEMS parameter sweep in parallel % on multiple remote machines. % +% Options: +% DependPath: Add multiple paths, your script may depend on +% UseOctave: Enable/Disable octave usage +% MaxThreads: max. number of parallel executions +% % Note: % - Currently only Linux/Unix is supported % - By default Octave is used to spawn parallel functions (saves @@ -49,9 +54,7 @@ if ~isunix error 'your OS is not supported (Unix only)' end -% use octave as default to save matlab (floating) licenses -% otherwise many matlab instances are spawned -queue.use_octave = 1; +queue.use_octave = exist('OCTAVE_VERSION','builtin') ~= 0; queue.verbose = 1;