%**************************************************************************
%This function gets the program parameters.
%
%Output:
%param, structure containing the program parameters
%
%Zachary Wolf, 4/3/08

function [param] = ppm_und_sim_get_param()

%Get the program parameters
ppm_und_sim_param;
param.output_file_dir = OUTPUT_FILE_DIR;
param.num_block_xdiv = NUM_BLOCK_XDIV;
param.num_block_ydiv = NUM_BLOCK_YDIV;
param.num_block_zdiv = NUM_BLOCK_ZDIV;
param.und_gap = UND_GAP;
param.period = PERIOD;
param.num_ctr_period = NUM_CTR_PERIOD;
param.br = BR;
param.block_x_width = BLOCK_X_WIDTH;
param.block_y_width = BLOCK_Y_WIDTH;
param.block_z_width = BLOCK_Z_WIDTH;
param.block_z_space = BLOCK_Z_SPACE;
param.block_end_mag_1_z_width = BLOCK_END_MAG_1_Z_WIDTH;
param.block_end_space_2_z_width = BLOCK_END_SPACE_2_Z_WIDTH;
param.block_end_mag_2_z_width = BLOCK_END_MAG_2_Z_WIDTH;
param.block_end_space_3_z_width = BLOCK_END_SPACE_3_Z_WIDTH;
param.block_end_mag_3_z_width = BLOCK_END_MAG_3_Z_WIDTH;
param.x_field_pts = X_FIELD_PTS;
param.y_field_pts = Y_FIELD_PTS;
param.z_field_pts = Z_FIELD_PTS;

%Done
