Lines Matching refs:options
12 static PetscErrorCode ProcessOptions(MPI_Comm comm, AppCtx *options) in ProcessOptions() argument
15 options->test = 0; in ProcessOptions()
17 …PetscCall(PetscOptionsBoundedInt("-test", "Test to run", FILENAME, options->test, &options->test, … in ProcessOptions()
22 static PetscErrorCode CreateMesh(MPI_Comm comm, AppCtx *options, DM *dm) in CreateMesh() argument
33 static PetscErrorCode test0(DM dm, AppCtx *options) in test0() argument
44 static PetscErrorCode test1(DM dm, AppCtx *options) in test1() argument
65 static PetscErrorCode test2(DM dm, AppCtx *options) in test2() argument
87 static PetscErrorCode test3(DM dm, AppCtx *options) in test3() argument
101 PetscCall(test1(dm, options)); in test3()
105 static PetscErrorCode test4(DM dm, AppCtx *options) in test4() argument
118 PetscCall(test2(dm, options)); in test4()
122 static PetscErrorCode test5(DM dm, AppCtx *options) in test5() argument
140 static PetscErrorCode test6(DM dm, AppCtx *options) in test6() argument
160 static PetscErrorCode test7(DM dm, AppCtx *options) in test7() argument
173 PetscCall(test5(dm, options)); in test7()
177 static PetscErrorCode test8(DM dm, AppCtx *options) in test8() argument
190 PetscCall(test6(dm, options)); in test8()
198 AppCtx options; in main() local
203 PetscCall(ProcessOptions(comm, &options)); in main()
204 PetscCall(CreateMesh(comm, &options, &dm)); in main()
206 switch (options.test) { in main()
208 PetscCall(test0(dm, &options)); in main()
211 PetscCall(test1(dm, &options)); in main()
214 PetscCall(test2(dm, &options)); in main()
217 PetscCall(test3(dm, &options)); in main()
220 PetscCall(test4(dm, &options)); in main()
223 PetscCall(test5(dm, &options)); in main()
226 PetscCall(test6(dm, &options)); in main()
229 PetscCall(test7(dm, &options)); in main()
232 PetscCall(test8(dm, &options)); in main()
235 SETERRQ(comm, PETSC_ERR_ARG_OUTOFRANGE, "No such test: %" PetscInt_FMT, options.test); in main()