0001 function luke_job = runluke_remote_jd(lukestructs,remote)
0002
0003 luke_job = matstandardjob_jd('runmat');
0004
0005 mat_input.fun = 'run_lukert';
0006 mat_input.args_in = lukestructs;
0007 mat_input.nargout = 2;
0008
0009 if isfield(lukestructs.dkeparam,'luke_memory'),
0010 luke_job.memory = lukestructs.dkeparam.luke_memory;
0011 elseif isfield(lukestructs,'transpfaste') && ~isempty(lukestructs.transpfaste),
0012 luke_job.memory = 14000;
0013 else
0014 luke_job.memory = 7000;
0015 end
0016
0017 if isfield(lukestructs.dkeparam,'luke_ppn'),
0018 luke_job.nodes = 1;
0019 luke_job.ppn = lukestructs.dkeparam.luke_ppn;
0020 end
0021
0022 luke_job = remoterunbatch(remote,luke_job,mat_input);
0023