Changeset 1958
- Timestamp:
- 08/26/09 15:10:05 (16 years ago)
- Location:
- issm/trunk/src/m
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/solutions/macayeal/diagnostic.m
r1759 r1958 7 7 % Usage: 8 8 % md=diagnostic(md) 9 10 %control method? 11 if md.control_analysis==1, 12 md=control(md); 13 return; 14 end 9 15 10 16 %First check we do have the correct argument number -
issm/trunk/src/m/utils/Nightly/testsgetfields.m
r1914 r1958 1 function fields=testsgetfields(mdtype, string),2 %TESTSGET fields - build the fields to be checked from a string1 function fields=testsgetfields(mdtype,analysis), 2 %TESTSGETFIELDS - build the fields to be checked from a analysis 3 3 % 4 4 % This routine is used by nightly runs (runme.m and updatearchive.m). 5 % for an input string'prognostic', it will output 'cielo'5 % for an input analysis 'prognostic', it will output 'cielo' 6 6 % 7 7 % Usage: 8 % fields=testsgetfields(mdtype, string)8 % fields=testsgetfields(mdtype,analysis) 9 9 % 10 10 % Example: … … 13 13 % See also: TESTSGETANALYSIS, TESTGETPACKAGE 14 14 15 if strcmpi( string,'diagnostic'),15 if strcmpi(analysis,'diagnostic'), 16 16 if strcmpi(mdtype,'3d') 17 17 fields={'diagnostic.vy','diagnostic.vz'}; … … 20 20 end 21 21 22 elseif strcmpi( string,'thermal_steady'),22 elseif strcmpi(analysis,'thermal_steady'), 23 23 fields={'thermal.temperature','thermal.melting'}; 24 24 25 elseif strcmpi( string,'thermal_transient'),25 elseif strcmpi(analysis,'thermal_transient'), 26 26 fields={'thermal(end).temperature','thermal(end).melting'}; 27 27 28 elseif strcmpi( string,'prognostic'),28 elseif strcmpi(analysis,'prognostic'), 29 29 fields={'prognostic.thickness'}; 30 30 31 elseif strcmpi( string,'transient'),31 elseif strcmpi(analysis,'transient'), 32 32 if strcmpi(mdtype,'3d') 33 33 fields={'transient(end).vel','transient(end).pressure','transient(end).temperature','transient(end).melting','transient(end).thickness','transient(end).surface','transient(end).bed'}; … … 36 36 end 37 37 38 elseif strcmpi( string,'steadystate'),38 elseif strcmpi(analysis,'steadystate'), 39 39 fields={'steadystate.vel','steadystate.pressure','steadystate.temperature'}; 40 40 41 elseif strcmpi(string,'control'), 42 fields={'control.vel','control.J','control.parameter'}; 41 elseif strncmpi(analysis,'diagnostic_',11), 42 fields={'diagnostic.vel','diagnostic.J','diagnostic.parameter'}; 43 44 elseif strncmpi(analysis,'steadystate_',12), 45 fields={'steadystate.vel','steadystate.J','steadystate.parameter'}; 43 46 44 47 else 45 error(['testsgetfields error message: solution ' string' not supported yet']);48 error(['testsgetfields error message: solution ' analysis ' not supported yet']); 46 49 end
Note:
See TracChangeset
for help on using the changeset viewer.