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

Diff of /MITgcm_contrib/gael/matlab_class/@gcmfaces/sum.m

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

revision 1.1 by gforget, Wed Feb 10 14:43:48 2010 UTC revision 1.2 by gforget, Thu Oct 20 20:57:02 2011 UTC
# Line 1  Line 1 
1  function r = sum(p,varargin)  function r = sum(p,varargin)
2    %overloaded gcmfaces sum function :
3    %  1) if single gcmfaces argument, then returns the global sum over all faces
4    %  2) if more than one argument, then simply calls double sum function for
5    %     each face data, passing over the other arguments
6    
7  if nargin==1;  if nargin==1;
8     tmp1=[];     tmp1=[];

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22