Last change
on this file since 922 was 922, checked in by Eric.Larour, 16 years ago |
reworked diagnostic core to more resemble parallel core
|
File size:
554 bytes
|
Line | |
---|
1 | function dof=modelsize(models)
|
---|
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 |
|
---|
7 | %recover models
|
---|
8 | m_dh=models.dh;
|
---|
9 | m_dv=models.dv;
|
---|
10 | m_ds=models.ds;
|
---|
11 | m_dhu=models.dhu;
|
---|
12 | m_sl=models.sl;
|
---|
13 |
|
---|
14 | dof=0;
|
---|
15 | if ~isempty(m_ds.nodesets),
|
---|
16 | dof=m_ds.nodesets.fsize; %biggest dof number
|
---|
17 | end
|
---|
18 | if ~isempty(m_dh.nodesets),
|
---|
19 | if dof<m_dh.nodesets.fsize,
|
---|
20 | dof=m_dh.nodesets.fsize; %biggest dof number
|
---|
21 | end
|
---|
22 | end
|
---|
23 | if ~isempty(m_dhu.nodesets),
|
---|
24 | if dof<m_dhu.nodesets.fsize,
|
---|
25 | dof=m_dhu.nodesets.fsize;
|
---|
26 | end
|
---|
27 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.