rbmatlab  1.13.10
 All Classes Namespaces Files Functions Variables Groups Pages
test_p_part.m
Go to the documentation of this file.
1 function OK = test_p_part
2 % Test of p-partition functionality
3 %
4 % Consitency check of p-partition algorithm is included in
5 % p_part_gen_detailed_data, hence no consisstency check neccessary in this
6 % test-file.
7 %
8 % Markus Dihlmann 30.04.2010
9 
10 OK=1;
11 disp('Test of p-partition');
12 params.coarse_factor = 8;
13 model = advection_fv_output_opt_model(params);
14 mu = [1,1,1];
15 model.RB_numintervals = [2,2,2];
16 
17 model = set_mu(model,mu);
18 
19 model.verbose=8;
20 
21 model.RB_generation_mode = 'greedy_uniform_fixed';
22 model.RB_error_indicator = 'estimator';
23 model.RB_extension_algorithm = @RB_extension_PCA_fixspace;
24 
25 model.RB_stop_epsilon=2;
26 model.RB_stop_timeout=100*60;
27 model.RB_stop_Nmax=4;
28 
29 model.p_part_max_refinement_level=1;
30 
31 %params.p_part_generation_mode = 'adaptive';
32 params.p_part_generation_mode = 'adaptive_epsilon_fixed';
33 params.p_part_early_refinement = 1;
34 params.p_part_numintervals = [1,1,1];
35 
36 model = p_part_model(model,params);
37 
38 try
39  model_data = gen_model_data(model);
40  detailed_data = gen_detailed_data(model,model_data);
41  detailed_data = clean_up_part_detailed_data(detailed_data);
42 catch ME
43  disp('Error in p-partition');
44  OK=0;
45 end
46 
47 
48 
49 
50