source: issm/trunk/src/m/solutions/cielo/modelsize.m@ 972

Last change on this file since 972 was 972, checked in by Eric.Larour, 16 years ago

Include analysis_type in models. Swapped arguments for models and results in processresults

File size: 415 bytes
Line 
1function dof=modelsize(models)
2%DOF - return the maximum number of degrees of freedom of the model
3%
4% Usage:
5% dof=modelsize(models)
6
7%initialize dof
8dof=0;
9
10%get all models
11modelsname=fieldnames(models);
12
13%get max dof
14for i=1:length(modelsname);
15 if ~strcmpi(modelsname,'analysis_type'),
16 if ~isempty(models.(modelsname{i}).nodesets),
17 dof=max(dof,models.(modelsname{i}).nodesets.fsize);
18 end
19 end
20end
Note: See TracBrowser for help on using the repository browser.