/[MITgcm]/MITgcm_contrib/gael/matlab_class/gcmfaces_convert/convert2array_ll.m
ViewVC logotype

Annotation of /MITgcm_contrib/gael/matlab_class/gcmfaces_convert/convert2array_ll.m

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


Revision 1.2 - (hide annotations) (download)
Tue Jun 21 21:19:27 2011 UTC (14 years, 1 month 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: +9 -2 lines
- remove blueprint gcmfaces argument in accord with the convert2array.m revision.

1 gforget 1.2 function [FLD]=convert2array_ll(fld);
2     %object: gcmfaces to array format conversion (if gcmfaces input)
3     % or: array to gcmfaces format conversion (if array input)
4     %
5     %notes: if array input, the gcmfaces format will be the one of mygrid.XC, so
6     % the array input must have originally been created according to convert2array
7    
8     global mygrid;
9 gforget 1.1
10     if isa(fld,'gcmfaces'); do_gcmfaces2array=1; else; do_gcmfaces2array=0; end;
11    
12     if do_gcmfaces2array;
13     FLD=fld.f1;
14     else;
15 gforget 1.2 FLD=NaN*mygrid.XC;
16 gforget 1.1 FLD.f1=fld;
17     end;
18    
19    

  ViewVC Help
Powered by ViewVC 1.1.22