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

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

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


Revision 1.2 - (show annotations) (download)
Thu Oct 20 20:57:02 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: +5 -0 lines
Error occurred while calculating annotation data.
- add help sections at the top.

1 function r = zeros(p,varargin)
2 %overloaded gcmfaces zeros function :
3 % if the first arguments is a gcmfaces object
4 % we call the double zeros function for each face data
5 % using face dimensions for the first two arguments and
6 % passing over the other arguments
7
8 r=p;
9
10 for iFace=1:r.nFaces;
11 iF=num2str(iFace);
12 eval(['[n1,n2]=size(p.f' iF '(:,:,1));']);
13 eval(['r.f' iF '=zeros(n1,n2,varargin{:});']);
14 end;
15
16

  ViewVC Help
Powered by ViewVC 1.1.22