NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/gliderproc/trunk/MATLAB/opnml/FEM/ele2nei.m

Revision 495 (checked in by cbc, 12 years ago)

Initial import of Stark code.

Line 
1 function nei=ele2nei(e,x,y)
2 %ELE2NEI - build a FEM neighbor list from element and node lists
3 %   ELE2NEI computes the neighbor list for a FEM mesh specified
4 %   by the triangular element lists.  Each node's neighbor list
5 %   is then sorted into counter-clockwise order.
6 %
7 %   The resulting neighbor list can be passed to WRITE_NEI
8 %   to output a FEM neighbor file (.nei) to disk.
9 %
10 %  INPUTS:  e - 3-column element connectivity list (REQ)
11 %           x - x-coordinate list (REQ)
12 %           y - y-coordinate list (REQ)
13 % OUTPUTS:  nei - neighbor list (REQ)
14 %
15 %    CALL: nei=ele2nei(e,x,y);
16 %
17 % Written by : Brian O. Blanton
18 %              March 1996
19 %
20
21 if nargin~=3
22    error('ELE2NEI REQUIRES!!! 3 input arguments.');
23 elseif nargout~=1
24    error('ELE2NEI REQUIRES!!! 1 output argument.');
25 end
26
27 nei=ele2neimex5(e,x,y);
28
29 %
30 %        Brian O. Blanton
31 %        Department of Marine Sciences
32 %        15-1A Venable Hall
33 %        CB# 3300
34 %        Uni. of North Carolina
35 %        Chapel Hill, NC
36 %                 27599-3300
37 %
38 %        919-962-4466
39 %        blanton@marine.unc.edu
40 %        March 1996
41 %
Note: See TracBrowser for help on using the browser.