1 function reduced_data=porsche_gen_reduced_data(model, detailed_data)
2 %
function reduced_data=porsche_gen_reduced_data(model, detailed_data)
4 %
this function generates the reduced_data
for the porsche_model by
using
5 % lin_stat_gen_reduced_data. Afterwards, the output components are calculated.
6 % This has to be done
this way, because in lin_stat_gen_reduced_data
7 % it is not possible to use the gradient of the solution instead of the
8 % solution itself
for computing the output-functional.
10 % Oliver Zeeb, 16.05.11
13 old_compute_output_functional=model.compute_output_functional;
14 model.compute_output_functional=0;
15 reduced_data = lin_stat_gen_reduced_data(model, detailed_data);
16 model.compute_output_functional=old_compute_output_functional;
17 if model.compute_output_functional == 1
18 old_decomp_mode = model.decomp_mode;
19 model.decomp_mode = 1;
20 %output_comp = porsche_operators_output_components(model,detailed_data);
21 output_comp = model.operators_output(model,detailed_data);
22 model.decomp_mode = old_decomp_mode;
23 reduced_data.lN_comp = output_comp;