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

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

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

revision 1.1 by gforget, Wed Feb 10 14:43:47 2010 UTC revision 1.2 by gforget, Thu Oct 20 20:57:01 2011 UTC
# Line 1  Line 1 
1  function display(a)  function display(a)
2    %overloaded gcmfaces display function :
3    %  displays the gcmfaces object content and attributes
4    
5  stg = sprintf('      nFaces: %d\n',a.nFaces);  stg = sprintf('      nFaces: %d\n',a.nFaces);
6  for iFace=1:a.nFaces;  for iFace=1:a.nFaces;
7     eval(['tmp1=a.f' num2str(iFace) ';']); tmp1=size(tmp1);     eval(['tmp1=a.f' num2str(iFace) ';']); tmp1=size(tmp1);
8     tmp2='[';     tmp2='[';
9     for ii=1:length(tmp1); tmp2=[tmp2 num2str(tmp1(ii)) 'x']; end;     for ii=1:length(tmp1); tmp2=[tmp2 num2str(tmp1(ii)) 'x']; end;
10     tmp2=[tmp2(1:end-1) ']'];     tmp2=[tmp2(1:end-1) ' ' class(tmp1) ']'];
11     stg=strvcat(stg,['      f' num2str(iFace) ': ' tmp2]);     stg=strvcat(stg,['      f' num2str(iFace) ': ' tmp2]);
12  end;  end;
13  disp(stg)  disp(stg)

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22