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

Last change on this file since 809 was 809, checked in by seroussi, 16 years ago

improved modelsize

File size: 475 bytes
Line 
1function dof=modelsize(m_dh,m_dv,m_ds,m_dhu,m_sl);
2%DOF - return the maximum number of degrees of freedom of the model
3%
4% Usage:
5% dof=modelsize(m_dh,m_dv,m_ds,m_dhu,m_sl)
6
7dof=0;
8if ~isempty(m_ds.nodesets),
9 dof=m_ds.nodesets.fsize; %biggest dof number
10end
11if ~isempty(m_dh.nodesets),
12 if dof<m_dh.nodesets.fsize,
13 dof=m_dh.nodesets.fsize; %biggest dof number
14 end
15end
16if ~isempty(m_dhu.nodesets),
17 if dof<m_dhu.nodesets.fsize,
18 dof=m_dhu.nodesets.fsize;
19 end
20end
Note: See TracBrowser for help on using the repository browser.