getgriddata

PURPOSE ^

INPUT function xyz=getgriddata(beamelem,grids)

SYNOPSIS ^

function z=getgriddata(beamelem,grids)

DESCRIPTION ^

INPUT function xyz=getgriddata(beamelem,grids)
Create array z of size num_grids x 1 (1 for z)
of space coordinates for each grid.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function z=getgriddata(beamelem,grids)
0002 %INPUT function xyz=getgriddata(beamelem,grids)
0003 %Create array z of size num_grids x 1 (1 for z)
0004 %of space coordinates for each grid.
0005 
0006 num_grids=2;
0007 
0008 z=zeros(num_grids,1);
0009 
0010 for i=1:num_grids,
0011     z(i)=grids(beamelem.g(i)).grid.z;
0012 end

Generated on Sun 29-Mar-2009 20:22:55 by m2html © 2003