/[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.2 - (hide annotations) (download)
Thu Oct 20 20:57:01 2011 UTC (13 years, 9 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
- add help sections at the top.

1 gforget 1.1 function r = cut_T_N(p,varargin)
2 gforget 1.2 %object : remove N points at the edge of each face (opposite of exch_T_N).
3     %input: b is a gcmfaces object
4     %optional: N (1 by default) is the halo region width
5     %output: a is the reduced gcmfaces object
6     %
7 gforget 1.1
8     r=p;
9    
10     if nargin==1; N=1; else; N=varargin{1}; end;
11    
12     for iFace=1:r.nFaces;
13     iF=num2str(iFace);
14     eval(['r.f' iF '=p.f' iF '(1+N:end-N,1+N:end-N,:,:);']);
15     end;
16    
17    

  ViewVC Help
Powered by ViewVC 1.1.22