/[MITgcm]/MITgcm_contrib/gael/matlab_class/@gcmfaces/display.m
ViewVC logotype

Annotation of /MITgcm_contrib/gael/matlab_class/@gcmfaces/display.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Thu Oct 20 20:57:01 2011 UTC (13 years, 8 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint65x, checkpoint65r, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, HEAD
Changes since 1.1: +3 -1 lines
- add help sections at the top.

1 gforget 1.1 function display(a)
2 gforget 1.2 %overloaded gcmfaces display function :
3     % displays the gcmfaces object content and attributes
4 gforget 1.1
5     stg = sprintf(' nFaces: %d\n',a.nFaces);
6     for iFace=1:a.nFaces;
7     eval(['tmp1=a.f' num2str(iFace) ';']); tmp1=size(tmp1);
8     tmp2='[';
9     for ii=1:length(tmp1); tmp2=[tmp2 num2str(tmp1(ii)) 'x']; end;
10 gforget 1.2 tmp2=[tmp2(1:end-1) ' ' class(tmp1) ']'];
11 gforget 1.1 stg=strvcat(stg,[' f' num2str(iFace) ': ' tmp2]);
12     end;
13     disp(stg)
14    

  ViewVC Help
Powered by ViewVC 1.1.22