Debian Codegraph @

idp/ffddm_parameters.idp

raw
1 verbosity = 0;
2 int ffddmverbosity = getARGV("-ffddm_verbosity", 5);
3 /*
4 if (mpirank != 0)
5 mverbosity = 0;
6 */
7
8 string ffddmprecond = getARGV("-ffddm_schwarz_method", "ras");
9 string ffddmvariant = getARGV("-ffddm_variant", "right"); // right(default) or left preconditioning
10 int ffddmrestart = getARGV("-ffddm_gmres_restart",200);
11 int ffddmmaxit = getARGV("-ffddm_max_it", 200);
12 real ffddmtol = getARGV("-ffddm_tol", 1.e-6);
13 real ffddminexactCStol = getARGV("-ffddm_inexactCS_tol", 1.e-1);
14 int ffddmnu = getARGV("-ffddm_geneo_nu", 20); // number of local eigenvectors to compute for DtN CS (choice criterion 4.3 of Lea's paper is applied to these computed eigenvectors unless -noLea is activated)
15 real ffddmtau = getARGV("-ffddm_geneo_threshold",0.5);
16 if (usedARGV("-ffddm_geneo_nu") > -1 && usedARGV("-ffddm_geneo_threshold") <= -1)
17 ffddmtau = 0;
18 int ffddminertia = usedARGV("-ffddm_geneo_threshold") > -1 && usedARGV("-ffddm_geneo_no_inertia") <= -1;
19 if (ffddminertia && usedARGV("-ffddm_geneo_nu") <= -1)
20 ffddmnu = 500;
21
22 string ffddmcorrection = getARGV("-ffddm_schwarz_coarse_correction", "ADEF1"); // for 2 level preconditioner
23
24 int ffddmexclude = getARGV("-ffddm_master_exclude", 0);
25 int ffddmpCS = getARGV("-ffddm_master_p", 1);
26
27 int ffddminterfacelabel = 10;
28 int[int] ffddmcubelabels = [10,10,10,10,10,10];
29
30 /*
31 int binexactCS = usedARGV("-inexactCS") > -1 ? 1 : 0;
32 int inexactCSsplit = getARGV("-inexactCS_split", 1);
33 if (binexactCS) {
34 exclude = 0;
35 pCS = mpisize;
36 }
37 */
38
39 /*
40 if (!bCS) {
41 exclude = 0;
42 pCS = 0;
43 }
44 */
45
46 int ffddmoverlap = getARGV("-ffddm_overlap", 1);
47 int ffddmsplit = getARGV("-ffddm_split", 1);
48 int ffddmpartitioner = getARGV("-ffddm_partitioner", 1); // 0: simple, 1: metis, 2: scotch
49 int ffddmbmedit = usedARGV("-ffddm_medit") > -1 ? 1 : 0;
50 int ffddmbffplot = usedARGV("-ffddm_disable_plots") > -1 ? 0 : 1;
51 int ffddmbplot = (ffddmbmedit || ffddmbffplot) && !NoGraphicWindow;
52 int ffddmnbiso = getARGV("-ffddm_nbiso", 20);
53 int ffddmbdirect = usedARGV("-direct") > -1 ? 1 : 0;
54 int ffddmnpart = getARGV("-seqddm", -1);
55 int bpara = 0;
56 int bseq = 1;
57 if (ffddmnpart <= 0) {
58 bseq = 0;
59 bpara = 1;
60 ffddmnpart = mpisize-ffddmexclude*ffddmpCS;
61 }
62
63 int bnoGlob = usedARGV("-noGlob") > -1 ? 1 : 0;
64 int bnoGlobwithpartloc = usedARGV("-noGlobwithpartloc") > -1 ? 1 : 0;
65 int bnopartloc = bnoGlob;
66 bnoGlob = bnoGlob || bnoGlobwithpartloc;
67
68 //if (abs(ffddmsplit)>1) bnoGlob = 1;
69 if (bseq || ffddmbplot || ffddmbdirect)
70 assert(!bnoGlob);
71
72 real vtgv = -1;//1.e+30;
73 real vtgvelim = -1;//-2;
74 int vsym = 0;//
75 //macro msym GMRES//CG//EOM
76
77 /*
78 if (binexactCS) {
79 assert(bCS && bCM && bpara);
80 }
81 */
82
83 /*
84 macro simple(PhGlobal, part, comm)
85 {
86 part = 1;
87 }
88 // EOM
89 */
90
91 /*
92 real diam;
93 macro bbN(boundingMesh, overshoot, ThGlobal)
94 real[int] bb(4);
95 boundingbox(bb, boundingMesh);
96 diam = sqrt((bb(1) - bb(0))^2 + (bb(3) - bb(2))^2);
97 bb(0) -= overshoot;
98 bb(1) += overshoot;
99 bb(2) -= overshoot;
100 bb(3) += overshoot;
101
102 ThGlobal = mtrunc(ThGlobal, (x >= bb(0) && x <= bb(1) && y >= bb(2) && y <= bb(3)));// EOM
103 */
104
105