Changeset 1311
- Timestamp:
- 07/14/09 14:56:10 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/ismodelselfconsistent.m
r1298 r1311 214 214 %PROGNOSTIC 215 215 if strcmp(md.analysis_type,'prognostic'), 216 %old testing217 % if isempty(find(md.gridondirichlet_diag)),218 % disp(['model ' md.name ' diagnostic is not well posed (singular). You need at least one grid with fixed velocity!'])219 % bool=0;return;220 % end221 % if isempty(find(md.gridondirichlet_prog)),222 % disp(['model ' md.name ' prognostic is not well posed (singular). You need at least one grid with fixed thickness!'])223 % bool=0;return;224 % end225 216 226 217 %VELOCITIES … … 231 222 end 232 223 233 %THERMAL TRANSIENT234 if strcmp(md.analysis_type,'thermal')235 if strcmp(md.sub_analysis_type,'transient')236 237 %INITIAL TEMPERATURE, MELTING AND ACCUMULATION238 if isempty(md.temperature),239 disp(['An initial temperature is needed for a transient thermal computation'])240 bool=0;return;241 end242 if isstruct(md.temperature) | isstruct(md.melting) | isstruct(md.accumulation),243 disp(['The initial temperature, melting or accumulation should be a list and not a structure'])244 bool=0;return;245 end246 end247 end248 249 224 %THERMAL STEADY AND THERMAL TRANSIENT 250 225 if strcmpi(md.analysis_type,'thermal'), … … 257 232 258 233 %VELOCITIES AND PRESSURE 259 if ( isempty(md.vx) | isnan(md.vx) | isempty(md.vy) | isnan(md.vy) | isempty(md.vz) | isnan(md.vz)),234 if (length(md.vx)~=md.numberofgrids | length(md.vy)~=md.numberofgrids | length(md.vz)~=md.numberofgrids), 260 235 disp(['a 3d velocity is required. Run ''diagnostic'' solution first!']) 261 236 bool=0;return; 262 237 end 263 if ( isempty(md.pressure) | isnan(md.pressure)),238 if (length(md.pressure)~=md.numberofgrids), 264 239 disp(['pressure is required. Run ''diagnostic'' solution first!']) 265 240 bool=0;return; … … 267 242 end 268 243 269 %THERMAL TRANSIENT AND TRANSIENT270 if strcmp (md.analysis_type,'thermal'),244 %THERMAL TRANSIENT 245 if strcmpi(md.analysis_type,'thermal') & strcmp(md.sub_analysis_type,'transient'), 271 246 272 247 %DT and NDT … … 279 254 end 280 255 281 %INITIAL TEMPERATURE 282 if isstruct(md.temperature), 283 disp(['The initial temperature should be empty or a list but not a structure']) 256 %INITIAL TEMPERATURE, MELTING AND ACCUMULATION 257 if (length(md.temperature)~=md.numberofgrids), 258 disp(['An initial temperature is needed for a transient thermal computation']) 259 bool=0;return; 260 end 261 if (length(md.temperature)~=md.numberofgrids | length(md.accumulation)~=md.numberofgrids | length(md.melting)~=md.numberofgrids), 262 disp(['The initial temperature, melting or accumulation should be a list and not a structure']) 284 263 bool=0;return; 285 264 end
Note:
See TracChangeset
for help on using the changeset viewer.