Last change
on this file since 517 was 517, checked in by Mathieu Morlighem, 16 years ago |
added utilities for nightlyruns
|
File size:
1.0 KB
|
Line | |
---|
1 | function [analysis_type sub_analysis_type]=testsgetanalys(string),
|
---|
2 | %TESTSGETANALYSIS - build the analysis type and sub analysis type from a string
|
---|
3 | %
|
---|
4 | % This routine is used by nightly runs (runme.m and updatearchive.m).
|
---|
5 | % for an input string 'thermalsteady', it will output [thermal steady]
|
---|
6 | %
|
---|
7 | % Usage:
|
---|
8 | % [analysis_type sub_analysis_type]=testsgetanalysis(string)
|
---|
9 | %
|
---|
10 | % Example:
|
---|
11 | % [analysis_type sub_analysis_type]=testsgetanalysis('diagnostic');
|
---|
12 | %
|
---|
13 | % See also: TESTSGETPACKAGE, TESTSGETFIELDS
|
---|
14 |
|
---|
15 | if strcmpi(string,'diagnostic'),
|
---|
16 | analysis_type='diagnostic';
|
---|
17 | sub_analysis_type='';
|
---|
18 |
|
---|
19 | elseif strcmpi(string,'prognostic'),
|
---|
20 | analysis_type='prognostic';
|
---|
21 | sub_analysis_type='';
|
---|
22 |
|
---|
23 | elseif strcmpi(string,'thermalsteady'),
|
---|
24 | analysis_type='thermal';
|
---|
25 | sub_analysis_type='steady';
|
---|
26 |
|
---|
27 | elseif strcmpi(string,'thermaltransient'),
|
---|
28 | analysis_type='thermal';
|
---|
29 | sub_analysis_type='transient';
|
---|
30 |
|
---|
31 | elseif strcmpi(string,'transient'),
|
---|
32 | analysis_type='transient';
|
---|
33 | sub_analysis_type='';
|
---|
34 |
|
---|
35 | else
|
---|
36 | error(['testsgetanalysis error message: solution ' string ' not supported yet']);
|
---|
37 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.