rbmatlab  1.13.10
 All Classes Namespaces Files Functions Variables Groups Pages
get_dofs_from_sim_data_for_sensitivity_extension.m
1 function U_ext = get_dofs_from_sim_data_for_sensitivity_extension(sim_data,der_indx)
2 %function U_ext = get_dofs_from_sim_data_for_sensitivity_extension(sim_data,detailed_data)
3 %
4 % function returns the solution which is used for PCA extension of the
5 % reduced basis.
6 %
7 % required fields of detailed_data:
8 % RB_info.trained_with_derivative: last entry indicates which derivative
9 % solution should be used.
10 %
11 % Markus Dihlmann 03.02.2011
12 %
13 
14 if (nargin==1)||(der_indx == 0)
15  % use original solution
16  U_ext = sim_data.U;
17 else
18  der_indx = der_indx;
19  U_ext = sim_data.U_der{der_indx};
20 end