Lines Matching refs:options
21 PetscErrorCode ProcessOptions(MPI_Comm comm, AppCtx *options) in ProcessOptions() argument
26 options->debug = PETSC_FALSE; in ProcessOptions()
27 options->dim = 2; in ProcessOptions()
28 options->nele = 5; in ProcessOptions()
29 options->nfields = 256; in ProcessOptions()
30 options->simplex = PETSC_FALSE; in ProcessOptions()
31 options->write_output = PETSC_FALSE; in ProcessOptions()
32 options->interlace = PETSC_FALSE; in ProcessOptions()
33 options->input_file[0] = '\0'; in ProcessOptions()
34 PetscCall(PetscStrncpy(options->output_file, "ex2.h5m", sizeof(options->output_file))); in ProcessOptions()
37 …PetscCall(PetscOptionsBool("-debug", "Enable debug messages", "ex2.cxx", options->debug, &options-… in ProcessOptions()
38 …, "Use interlaced arrangement for the field data", "ex2.cxx", options->interlace, &options->interl… in ProcessOptions()
39 …eate simplices instead of tensor product elements", "ex2.cxx", options->simplex, &options->simplex… in ProcessOptions()
40 …onsRangeInt("-dim", "The topological mesh dimension", "ex2.cxx", options->dim, &options->dim, NULL… in ProcessOptions()
41 …Int("-n", "The number of elements in each dimension", "ex2.cxx", options->nele, &options->nele, NU… in ProcessOptions()
42 …("-meshfile", "The input mesh file", "ex2.cxx", options->input_file, options->input_file, sizeof(o… in ProcessOptions()
43 … (Default H5M format)", "ex2.cxx", options->output_file, options->output_file, sizeof(options->out… in ProcessOptions()
44 …elds", "The list of names of the field variables", "ex2.cxx", options->fieldnames, &options->nfiel… in ProcessOptions()
47 …if (options->debug) PetscCall(PetscPrintf(comm, "Total number of fields: %" PetscInt_FMT ".\n", op… in ProcessOptions()
49 options->nfields = 1; in ProcessOptions()
50 PetscCall(PetscStrallocpy("TestEX2Var", &options->fieldnames[0])); in ProcessOptions()
53 PetscCall(PetscLogEventRegister("CreateMesh", DM_CLASSID, &options->createMeshEvent)); in ProcessOptions()