[Index for ./IO_Functions] [Return to Master Index]

write_nei

(./IO_Functions/write_nei.m)


Function Synopsis

errno=write_nei(x,y,bc,z,nbs,fname)

Help text

WRITE_NEI Write a FEM neighbor file in .nei format.
   WRITE_NEI requires 5 input arguments, with 1 optional argument:
      1) x   - x-coordinates of the grid (REQ)		  
      2) y   - y-coordinates of the grid (REQ)		  
      3) bc  - boundary codes for each horizontal node (REQ)
      4) z   - bathymetry of the grid (REQ)		  
      5) nbs - neighbor list of grid's nodes (REQ)
      6) fname - output filename (OPT)			  

   If fname is omitted, WRITE_NEI enables a file browser
   with which the user can specify the .NEI file.
   Otherwise, fname is the name of the .nei file, relative 
   or absolute (fullpath), including the suffix .'nei'.
   This input is a string so it must be enclosed in
   single quotes. 

   WRITE_NEI checks the lengths of input arrays and the
   structure of the neighbor list for some minimal
   error checking.  This is not, however, very rigorous.

 CALL: err=write_nei(x,y,bc,z,nbs,fname);
          err=write_nei(x,y,bc,z,nbs);

 Written by : Brian O. Blanton 
              March 1996


Produced by mat2html on Tue Feb 2 16:15:45 EST 1999
Cross-Directory links are: OFF