1 function DM=mat_gen_wind_flux_div(X,type)
2 % get matrix of flux divergence
5 % type 'D' create divergence matrix D
6 % 'M' create wind to flux matrix M
7 % 'DM' create D*M (default)
9 % DM flux divergence matrix
14 if ~exist('type','var')
18 % Generate wind flux matrix
21 % Generate divergence matrix
24 % Generate flux divergence matrix