rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
lin_evol_gen_model_data.m
1 function model_data = lin_evol_gen_model_data(model)
2 %function model_data = lin_evol_gen_model_data(model)
3 %
4 % Function generating large model data, i.e. grid, which is not to
5 % be stored in the model, but required for numerics
6 % The reason is, that the model is passed to all kind of routines,
7 % hence the model is forbidden to contain high-dimensional objects.
8 
9 % Bernard Haasdonk 27.8.2009
10 
11 model_data = [];
12 model_data.grid = construct_grid(model);
13 
14 % I think "inner_product_matrix_algorithm" should be replaced by mass_matrix,
15 % as the latter can be built generically by local_mass_matrix
16 % function, e.g. for ldg functions
17 %model_data.W = model.inner_product_matrix_algorithm(model, model_data);
18 % the following can, e.g. be set to fv_mass_matrix
19 model_data.W = model.mass_matrix([], model_data.grid,[]);
20