Ignore:
Timestamp:
05/16/11 15:01:42 (14 years ago)
Author:
seroussi
Message:

changed grid to node in matlab

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/kml/nodeconnectivity.m

    r6346 r8298  
    22%  create a node connectivity table for the elements in the model.
    33%
    4 %  [nodecon]=edgeadjacency(elem,ngrids,mxepg)
     4%  [nodecon]=edgeadjacency(elem,nnodes,mxepg)
    55%
    66%  where the required input is:
     
    88%
    99%  and the required output is:
    10 %    nodecon       (numeric, node connectivity array (ngrids x mxepg+1))
     10%    nodecon       (numeric, node connectivity array (nnodes x mxepg+1))
    1111%
    1212%  the optional input is:
    13 %    ngrids        (numeric, number of grids)
    14 %    mxepg         (numeric, max elements per grid)
     13%    nnodes        (numeric, number of nodes)
     14%    mxepg         (numeric, max elements per node)
    1515%
    16 function [nodecon]=nodeconnectivity(elem,ngrids,mxepg)
     16function [nodecon]=nodeconnectivity(elem,nnodes,mxepg)
    1717
    1818if ~nargin
     
    2121end
    2222
    23 if ~exist('ngrids','var') || isempty(ngrids)
    24     ngrids=max(max(elem));
     23if ~exist('nnodes','var') || isempty(nnodes)
     24    nnodes=max(max(elem));
    2525end
    2626if ~exist('mxepg','var') || isempty(mxepg)
     
    3030%%  create the node connectivity array
    3131
    32 nodecon=zeros(ngrids,mxepg+1);
     32nodecon=zeros(nnodes,mxepg+1);
    3333
    3434%  loop over the elements
Note: See TracChangeset for help on using the changeset viewer.