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

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

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


Revision 1.1 - (show annotations) (download)
Wed Feb 10 14:43:47 2010 UTC (15 years, 5 months ago) by gforget
Branch: MAIN
matlab_class core routine: gcmfaces methods

1 function r = max(p,varargin)
2
3 if nargin==1;
4 tmp1=[];
5 for iFace=1:p.nFaces;
6 iF=num2str(iFace);
7 eval(['tmp1=[tmp1;p.f' iF '(:)];']);
8 end;
9 r=max(tmp1);
10 return;
11 end;
12
13 r=p;
14
15 for iFace=1:r.nFaces;
16 iF=num2str(iFace);
17 eval(['r.f' iF '=max(p.f' iF ',varargin{:});']);
18 end;
19
20

  ViewVC Help
Powered by ViewVC 1.1.22