3 % modifies the reduced basis size fields of
'model' by a single variable.
6 % c: sets the reduced basis sizes to
7 % `(N,M) = c (N_{\mbox{max}}, c_{MbyN} N_{\mbox{max}})`. For time-adaptive
8 % schemes with several collateral reduced basis spaces, the following
9 % formula is applied: `(N,M^k) = c (N_{\mbox{max}}), c_{MbyN}
10 % \frac{M^k_{\mbox{max}}}{\mbox{max}_{k=0,...,K} M^k_{\mbox{max}}}
13 % Required fields of model:
14 % Nmax : maximum number of reduced basis vectors
15 % Mmax : maximum number of collateral reduced basis vectors
16 % M_by_N_ratio : ratio constant `c_{MbyN}` fixing the ratio between
17 % collateral and reduced basis vector numbers
19 model.N = max(round(c*model.Nmax),1);
20 maxMmax = max(model.Mmax);
21 model.M = arrayfun(@(x) min(x,max(round(c*x/maxMmax*model.M_by_N_ratio*model.Nmax),1)), model.Mmax);
function model = couple_N_and_M_by_c(model, c)
modifies the reduced basis size fields of model by a single variable.