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

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

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


Revision 1.1 - (hide annotations) (download)
Thu Apr 29 05:57:28 2010 UTC (15 years, 2 months ago) by gforget
Branch: MAIN
overloading zeros.m

1 gforget 1.1 function r = zeros(p,varargin)
2    
3     r=p;
4    
5     for iFace=1:r.nFaces;
6     iF=num2str(iFace);
7     eval(['[n1,n2]=size(p.f' iF '(:,:,1));']);
8     eval(['r.f' iF '=zeros(n1,n2,varargin{:});']);
9     end;
10    
11    

  ViewVC Help
Powered by ViewVC 1.1.22