[517] | 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';
|
---|
[643] | 17 | sub_analysis_type='none';
|
---|
[517] | 18 |
|
---|
| 19 | elseif strcmpi(string,'prognostic'),
|
---|
| 20 | analysis_type='prognostic';
|
---|
[643] | 21 | sub_analysis_type='none';
|
---|
[517] | 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';
|
---|
[643] | 33 | sub_analysis_type='none';
|
---|
[517] | 34 |
|
---|
| 35 | else
|
---|
| 36 | error(['testsgetanalysis error message: solution ' string ' not supported yet']);
|
---|
| 37 | end
|
---|