forked from NISOx-BDI/SwE-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
swe_rmodel.m
26 lines (22 loc) · 880 Bytes
/
swe_rmodel.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
function swe_rmodel
% Launches batch window containing SwE batch module for running a design.
% =========================================================================
% This function prepares (if needed) and launches the batch system with a
% job containing the batch module for the computation of a prespecified
% design.
% =========================================================================
% FORMAT swe_rmodel
% =========================================================================
% Written by Tom Maullin (05/09/2018)
% Version Info: $Format:%ci$ $Format:%h$
% Initiate a job
if isempty(spm_figure('FindWin','Graphics'))
% SPM not running
swe_jobman('initcfg')
end
% Launch the batch system with the SwE tab
swe_batch
% Add the specification module to it
swe_jobman('interactive','','swe.rmodel');
return
end