source: issm/trunk/src/m/utils/Nightly/testsgetanalysis.m@ 517

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 
1function [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
15if strcmpi(string,'diagnostic'),
16 analysis_type='diagnostic';
17 sub_analysis_type='';
18
19elseif strcmpi(string,'prognostic'),
20 analysis_type='prognostic';
21 sub_analysis_type='';
22
23elseif strcmpi(string,'thermalsteady'),
24 analysis_type='thermal';
25 sub_analysis_type='steady';
26
27elseif strcmpi(string,'thermaltransient'),
28 analysis_type='thermal';
29 sub_analysis_type='transient';
30
31elseif strcmpi(string,'transient'),
32 analysis_type='transient';
33 sub_analysis_type='';
34
35else
36 error(['testsgetanalysis error message: solution ' string ' not supported yet']);
37end
Note: See TracBrowser for help on using the repository browser.