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

Contents of /MITgcm_contrib/gael/matlab_class/@gcmfaces/set.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:01 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: +3 -0 lines
- add help sections at the top.

1 function a = set(a,varargin)
2 %overloaded gcmfaces set function :
3 % V = SET(H,'PropertyName',PropertyValue) sets the value of the specified
4 % attribute (e.g. nFaces and gridType) of a gcmfaces object H.
5
6 propertyArgIn = varargin;
7 while length(propertyArgIn) >= 2,
8 propName = propertyArgIn{1};
9 val = propertyArgIn{2};
10 propertyArgIn = propertyArgIn(3:end);
11 eval(['a.' propName '=val;']);
12 end
13

  ViewVC Help
Powered by ViewVC 1.1.22