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

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

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


Revision 1.2 - (show annotations) (download)
Tue Jun 21 21:16:22 2011 UTC (14 years ago) by gforget
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
- remove the blueprint gcmfaces argument in convert2array.m.
- move convert2array.m to gcmfaces_convert, so that it is
	seen even for both input format (gcmfaces and array).

1 function [a]=convert2array(b,varargin);
2
3 if isa(b,'gcmfaces'); c=b; else; c=varargin{1}; end;
4
5 if strcmp(c.gridType,'llc');
6 a=convert2array_llc(b,varargin{:});
7 elseif strcmp(c.gridType,'cube');
8 a=convert2array_cube(b,varargin{:});
9 elseif strcmp(c.gridType,'llpc');
10 a=convert2array_llpc(b,varargin{:});
11 elseif strcmp(c.gridType,'ll');
12 a=convert2array_ll(b,varargin{:});
13 else;
14 error(['convert2array not implemented for ' c.gridType '!?']);
15 end;
16

  ViewVC Help
Powered by ViewVC 1.1.22