Home
last modified time | relevance | path

Searched refs:opts (Results 1 – 25 of 34) sorted by relevance

12

/petsc/src/sys/tests/
H A Dex20.c7 PetscInt opts[6] = {0}; in main() local
29 PetscCall(PetscOptionsGetInt(NULL, 0, "-zero", &opts[0], 0)); in main()
30 PetscCall(PetscOptionsGetInt(NULL, 0, "-a_one", &opts[1], 0)); in main()
31 PetscCall(PetscOptionsGetInt(NULL, 0, "-a_bb_two", &opts[2], 0)); in main()
32 PetscCall(PetscOptionsGetInt(NULL, 0, "-a_three", &opts[3], 0)); in main()
33 PetscCall(PetscOptionsGetInt(NULL, 0, "-a_cc_ddd_four", &opts[4], 0)); in main()
34 PetscCall(PetscOptionsGetInt(NULL, 0, "-five", &opts[5], 0)); in main()
35 …cInt_FMT " %" PetscInt_FMT " %" PetscInt_FMT "}\n", opts[0], opts[1], opts[2], opts[3], opts[4], o… in main()
39 PetscCall(PetscMemzero(opts, sizeof(opts))); in main()
40 PetscCall(PetscOptionsGetInt(NULL, 0, "-cl_zero", &opts[0], 0)); in main()
[all …]
/petsc/src/binding/petsc4py/test/
H A Dtest_optdb.py19 def _putopts(self, opts=None, OPTLIST=None): argument
20 if opts is None:
21 opts = self.opts
25 opts[k] = v
27 def _delopts(self, opts=None, OPTLIST=None): argument
28 if opts is None:
29 opts = self.opts
33 del opts[k]
36 self.opts = PETSc.Options(self.PREFIX)
39 self.opts = None
[all …]
H A Dtest_mat_fact.py5 def mkmat(n, mtype, opts): argument
10 for o in opts:
15 def mksys_diag(n, mtype, opts): argument
16 A = mkmat(n, mtype, opts)
28 def mksys_poi2(n, mtype, opts): argument
29 A = mkmat(n, mtype, opts)
H A Dtest_tao_py.py207 opts = PETSc.Options('test_tao_python_optimiser_')
208 opts['tao_max_it'] = 100
209 opts['tao_gatol'] = 1e-6
/petsc/share/petsc/bin/
H A Ddmnetwork_view.py186 def __init__(self, row, opts: DisplayOptions):
206 self.color = opts.nodeColor or opts.nodeColorParser.getRGB(row['Color'])
209 opts.adjustViewport(self)
213 def __init__(self, row, opts: DisplayOptions, nodes):
231 self.color = opts.edgeColor or parseRGBColor(row['Color'], (0.5, 0.5, 0.5, 1))
241 def display(self, opts: DisplayOptions, title):
288 if opts.setTitle:
289 title = (opts.setTitle, (0, 0, 0, 1))
303 if not opts.noNodes:
314 if not opts.noNodeLabels and not opts.noNodes:
[all …]
/petsc/src/mat/tests/
H A Dex140.c46 char opts[256]; in RunHasOperationTest() local
50 PetscCall(PetscSNPrintf(opts, 256, "-enable %s", optstr[matop])); in RunHasOperationTest()
51 PetscCall(PetscPrintf(PETSC_COMM_WORLD, "Testing with %s\n", opts)); in RunHasOperationTest()
66 PetscCall(PetscOptionsInsertString(NULL, opts)); in RunHasOperationTest()
79 PetscCall(PetscOptionsClearValue(NULL, opts)); in RunHasOperationTest()
/petsc/src/benchmarks/
H A DbenchmarkExample.py51 self.opts = defaultOptions
66 def optionsToString(self, **opts): argument
69 for key,value in opts.items():
98 def run(self, numProcs = 1, log = True, **opts): argument
106 ….example(self.library, self.num), self.optionsToString(**self.opts), self.optionsToString(**opts)])
107 if 'batch' in opts and opts['batch']:
108 del opts['batch']
110 …pt(self.num, numProcs, 120, ' '+self.optionsToString(**self.opts)+' '+self.optionsToString(**opts))
428 def processOptions(opts, name, n): argument
430 for key, val in opts.items():
[all …]
/petsc/src/dm/impls/plex/
H A Dplexgenerate.c103 PetscErrorCode DMPlexTriangleSetOptions(DM dm, const char *opts) in DMPlexTriangleSetOptions() argument
109 PetscAssertPointer(opts, 2); in DMPlexTriangleSetOptions()
111 PetscCall(PetscStrallocpy(opts, &mesh->triangleOpts)); in DMPlexTriangleSetOptions()
128 PetscErrorCode DMPlexTetgenSetOptions(DM dm, const char *opts) in DMPlexTetgenSetOptions() argument
134 PetscAssertPointer(opts, 2); in DMPlexTetgenSetOptions()
136 PetscCall(PetscStrallocpy(opts, &mesh->tetgenOpts)); in DMPlexTetgenSetOptions()
/petsc/config/
H A Dquery_tests.py318 opts, args = parser.parse_args()
373 searchin=opts.searchin
375 petsc_dir = opts.petsc_dir
376 petsc_arch = opts.petsc_arch
382 if opts.srcdir == 'src':
385 petsc_full_src = opts.srcdir
386 if opts.testdir == 'tests':
389 petsc_full_test = opts.testdir
390 if opts.startdir:
391 startdir=opts.startdir=petsc_full_src
[all …]
H A Dconfigure.py26 def check_for_option_mistakes(opts): argument
27 for opt in opts[1:]:
47 def check_for_unsupported_combinations(opts): argument
48 …if '--with-precision=single' in opts and '--with-clanguage=cxx' in opts and '--with-scalar-type=co…
51 def check_for_option_changed(opts): argument
66 for opt in opts[1:]:
73 def check_petsc_arch(opts): argument
77 for name in opts:
88 opts.append(useName)
H A Dgmakegen.py299 opts, extra_args = parser.parse_args() variable
304 …ain(petsc_arch=opts.petsc_arch, pkg_dir=opts.pkg_dir, pkg_name=opts.pkg_name, pkg_arch=opts.pkg_ar…
H A Dgmakegentest.py1094 opts, extra_args = parser.parse_args() variable
1099 if opts.testdir is None:
1100 opts.testdir = os.path.join(opts.petsc_arch, 'tests')
1102 main(petsc_dir=opts.petsc_dir, petsc_arch=opts.petsc_arch,
1103 pkg_dir=opts.pkg_dir,pkg_arch=opts.pkg_arch,pkg_name=opts.pkg_name,pkg_pkgs=opts.pkg_pkgs,
1104 verbose=opts.verbose,
1105 single_ex=opts.single_executable, srcdir=opts.srcdir,
1106 testdir=opts.testdir, check=opts.check_output)
H A Dtestparse.py625 opts, extra_args = parser.parse_args() variable
631 if not opts.test_file and not opts.directory:
638 verbosity=int(opts.verbosity)
642 main(directory=opts.directory,test_file=opts.test_file,verbosity=verbosity)
/petsc/src/binding/petsc4py/conf/
H A Depydocify.py64 opts = list(options)
65 for i, o in enumerate(opts):
67 opts[i] = '-Tpng'
68 options = type(options)(opts)
/petsc/src/sys/tests/output/
H A Dex20_2.out1 opts = {0 1 2 3 4 5}
3 opts = {old 0 new 0}
H A Dex20_4.out1 opts = {0 1 2 3 4 5}
4 opts = {old 1 new 1}
H A Dex20_1.out1 opts = {0 1 2 3 4 5}
4 opts = {old 1 new 0}
H A Dex20_3.out1 opts = {0 1 2 3 4 5}
5 opts = {old 0 new 1}
/petsc/doc/ext/
H A Dhtml5_petsc.py150 opts = self.config.highlight_options.get(lang, {})
156 node.rawsource, lang, opts=opts, linenos=linenos,
184 opts = self.config.highlight_options.get(lang, {})
186 node.astext(), lang, opts=opts, location=node, nowrap=True)
/petsc/lib/petsc/bin/maint/
H A Dcheck_header_guard.py345 def replace_in_file(path: pathlib.Path, opts: argparse.Namespace, ReplacerCls: type[_T]) -> list[st…
363 if not path.name.endswith(opts.suffixes):
366 if opts.verbose:
370 repl = ReplacerCls(opts.verbose, path)
373 if opts.action == 'convert':
374 if not opts.dry_run:
376 elif opts.action == 'check':
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DOptions.pyx19 >>> opts = PETSc.Options()
20 >>> opts['a'] = 1 # insert the command-line option '-a 1'
21 >>> if 'a' in opts: # if the option is present
22 >>> val = opts['a'] # return the option value as 'str'
23 >>> a_int = opts.getInt('a') # return the option value as 'int'
24 >>> a_bool = opts.getBool('a') # return the option value as 'bool'
29 >>> opts = PETSc.Options()
30 >>> b_float = opts.getReal('b', 1) # return the value or 1.0 if not present
35 >>> opts = PETSc.Options('prefix_')
36 >>> opts.getString('b', 'some_default_string') # read -prefix_b xxx
H A Dpetscopt.pxi262 opts = {}
276 opts[key] = value
278 return opts
/petsc/src/dm/impls/plex/generators/triangle/
H A Dtrigenerate.c76 char opts[64]; in DMPlexGenerate_Triangle() local
86 …ns, ((PetscObject)boundary)->prefix, "-dm_plex_generate_triangle_opts", opts, sizeof(opts), &flg)); in DMPlexGenerate_Triangle()
87 if (flg) PetscCall(DMPlexTriangleSetOptions(boundary, opts)); in DMPlexGenerate_Triangle()
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/
H A D_doc_section_base.py989 for key, opts in sorted(self.items.items()):
990 lopts = len(opts)
995 self._check_opt_starts_with(docstring, opts[0], 'Solitary', '.')
998 self._check_opt_starts_with(docstring, opts[0], 'First multi', '+')
999 for opt in opts[1:-1]:
1001 self._check_opt_starts_with(docstring, opts[-1], 'Last multi', '-')
/petsc/src/dm/impls/plex/generators/tetgen/
H A Dtetgenerate.cxx55 char opts[64]; in DMPlexGenerate_Tetgen() local
63 …ions, ((PetscObject)boundary)->prefix, "-dm_plex_generate_tetgen_opts", opts, sizeof(opts), &flg)); in DMPlexGenerate_Tetgen()
64 if (flg) PetscCall(DMPlexTetgenSetOptions(boundary, opts)); in DMPlexGenerate_Tetgen()

12