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

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

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


Revision 1.1 - (hide 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 gforget 1.1 function r = cut_T_N(p,varargin)
2    
3     r=p;
4    
5     if nargin==1; N=1; else; N=varargin{1}; end;
6    
7     for iFace=1:r.nFaces;
8     iF=num2str(iFace);
9     eval(['r.f' iF '=p.f' iF '(1+N:end-N,1+N:end-N,:,:);']);
10     end;
11    
12    

  ViewVC Help
Powered by ViewVC 1.1.22