Lines Matching refs:has

10   PetscBool   has;  in main()  local
17 PetscCall(PetscOptionsHasName(NULL, NULL, "-use_gpu_aware_mpi", &has)); in main()
18 PetscTestCheck(has == PETSC_TRUE); in main()
19 PetscCall(PetscOptionsHasName(NULL, NULL, "-abc", &has)); in main()
20 PetscTestCheck(has == PETSC_FALSE); in main()
21 PetscCall(PetscOptionsHasName(NULL, "", "-abc", &has)); in main()
22 PetscTestCheck(has == PETSC_FALSE); in main()
23 PetscCall(PetscOptionsHasName(NULL, "a", "-bc", &has)); in main()
24 PetscTestCheck(has == PETSC_FALSE); in main()
25 PetscCall(PetscOptionsHasName(NULL, "ab", "-c", &has)); in main()
26 PetscTestCheck(has == PETSC_FALSE); in main()
27 PetscCall(PetscOptionsHasName(NULL, "abc", "-", &has)); in main()
28 PetscTestCheck(has == PETSC_FALSE); in main()
31 PetscCall(PetscOptionsHasName(NULL, NULL, "-abc", &has)); in main()
32 PetscTestCheck(has == PETSC_TRUE); in main()
33 PetscCall(PetscOptionsHasName(NULL, "", "-abc", &has)); in main()
34 PetscTestCheck(has == PETSC_TRUE); in main()
35 PetscCall(PetscOptionsHasName(NULL, "a", "-bc", &has)); in main()
36 PetscTestCheck(has == PETSC_TRUE); in main()
37 PetscCall(PetscOptionsHasName(NULL, "ab", "-c", &has)); in main()
38 PetscTestCheck(has == PETSC_TRUE); in main()
39 PetscCall(PetscOptionsHasName(NULL, "abc", "-", &has)); in main()
40 PetscTestCheck(has == PETSC_TRUE); in main()
46 PetscCall(PetscOptionsHasName(NULL, NULL, "-ax", &has)); in main()
47 PetscTestCheck(has == PETSC_TRUE); in main()
50 PetscCall(PetscOptionsHasName(NULL, NULL, "-abxy", &has)); in main()
51 PetscTestCheck(has == PETSC_TRUE); in main()
55 PetscCall(PetscOptionsHasName(NULL, NULL, "-acxz", &has)); in main()
56 PetscTestCheck(has == PETSC_TRUE); in main()
76 PetscCall(PetscOptionsHasName(NULL, NULL, name, &has)); in main()
77 PetscTestCheck(has == PETSC_FALSE); in main()
81 PetscCall(PetscOptionsHasName(NULL, NULL, name, &has)); in main()
82 PetscTestCheck(has == PETSC_FALSE); in main()
84 PetscCall(PetscOptionsHasName(NULL, NULL, name, &has)); in main()
85 PetscTestCheck(has == PETSC_TRUE); in main()
89 PetscCall(PetscOptionsHasName(NULL, NULL, name, &has)); in main()
90 PetscTestCheck(has == PETSC_TRUE); in main()
92 PetscCall(PetscOptionsHasName(NULL, NULL, name, &has)); in main()
93 PetscTestCheck(has == PETSC_FALSE); in main()
97 PetscCall(PetscOptionsHasName(NULL, NULL, name, &has)); in main()
98 PetscTestCheck(has == PETSC_FALSE); in main()
100 PetscCall(PetscOptionsHasName(NULL, NULL, name, &has)); in main()
101 PetscTestCheck(has == PETSC_TRUE); in main()
105 PetscCall(PetscOptionsHasName(NULL, NULL, name, &has)); in main()
106 PetscTestCheck(has == PETSC_TRUE); in main()
108 PetscCall(PetscOptionsHasName(NULL, NULL, name, &has)); in main()
109 PetscTestCheck(has == PETSC_FALSE); in main()
113 PetscCall(PetscOptionsHasName(NULL, NULL, name, &has)); in main()
114 PetscTestCheck(has == PETSC_FALSE); in main()
119 PetscCall(PetscOptionsFindPair(NULL, NULL, "-abc_xyz", &val, &has)); in main()
120 PetscTestCheck(has == PETSC_TRUE && !strcmp(val, "123")); in main()
121 PetscCall(PetscOptionsFindPair(NULL, NULL, "-abc_42_xyz", &val, &has)); in main()
122 PetscTestCheck(has == PETSC_TRUE && !strcmp(val, "123")); in main()
123 PetscCall(PetscOptionsFindPair(NULL, NULL, "-abc_42_1_xyz", &val, &has)); in main()
124 PetscTestCheck(has == PETSC_TRUE && !strcmp(val, "123")); in main()
125 PetscCall(PetscOptionsFindPair(NULL, NULL, "-abc_42_1_23_xyz", &val, &has)); in main()
126 PetscTestCheck(has == PETSC_TRUE && !strcmp(val, "123")); in main()
127 PetscCall(PetscOptionsFindPair(NULL, NULL, "-abc_42_1_23_456_xyz", &val, &has)); in main()
128 PetscTestCheck(has == PETSC_TRUE && !strcmp(val, "123")); in main()
129 PetscCall(PetscOptionsFindPair(NULL, NULL, "-abc_42_1_23_456_789_xyz", &val, &has)); in main()
130 PetscTestCheck(has == PETSC_TRUE && !strcmp(val, "123")); in main()
131 PetscCall(PetscOptionsFindPair(NULL, NULL, "-abc_xyz_42", &val, &has)); in main()
132 PetscTestCheck(has == PETSC_FALSE); in main()
133 PetscCall(PetscOptionsFindPair(NULL, NULL, "-abc42xyz", &val, &has)); in main()
134 PetscTestCheck(has == PETSC_FALSE); in main()
135 PetscCall(PetscOptionsFindPair(NULL, NULL, "-abc42_xyz", &val, &has)); in main()
136 PetscTestCheck(has == PETSC_FALSE); in main()
137 PetscCall(PetscOptionsFindPair(NULL, NULL, "-abc_42xyz", &val, &has)); in main()
138 PetscTestCheck(has == PETSC_FALSE); in main()
139 PetscCall(PetscOptionsFindPair(NULL, NULL, "-abc0_42_xyz", &val, &has)); in main()
140 PetscTestCheck(has == PETSC_FALSE); in main()
141 PetscCall(PetscOptionsFindPair(NULL, NULL, "-abc_42_0xyz", &val, &has)); in main()
142 PetscTestCheck(has == PETSC_FALSE); in main()