Home
last modified time | relevance | path

Searched refs:prefix (Results 1 – 25 of 410) sorted by relevance

12345678910>>...17

/petsc/src/sys/objects/
H A Dprefix.c84 PetscErrorCode PetscObjectSetOptionsPrefix(PetscObject obj, const char prefix[]) in PetscObjectSetOptionsPrefix() argument
88 if (prefix) { in PetscObjectSetOptionsPrefix()
89 PetscAssertPointer(prefix, 2); in PetscObjectSetOptionsPrefix()
90 …PetscCheck(prefix[0] != '-', PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Options prefix should not begi… in PetscObjectSetOptionsPrefix()
91 if (prefix != obj->prefix) { in PetscObjectSetOptionsPrefix()
94 PetscCall(PetscFree(obj->prefix)); in PetscObjectSetOptionsPrefix()
95 PetscCall(PetscStrlen(prefix, &len)); in PetscObjectSetOptionsPrefix()
96 if (len) PetscCall(PetscStrallocpy(prefix, &obj->prefix)); in PetscObjectSetOptionsPrefix()
98 } else PetscCall(PetscFree(obj->prefix)); in PetscObjectSetOptionsPrefix()
119 PetscErrorCode PetscObjectAppendOptionsPrefix(PetscObject obj, const char prefix[]) in PetscObjectAppendOptionsPrefix() argument
[all …]
H A Daoptions.c35 …n_Private(PetscOptionItems PetscOptionsObject, MPI_Comm comm, const char prefix[], const char titl… in PetscOptionsBegin_Private() argument
38 if (prefix) PetscAssertPointer(prefix, 3); in PetscOptionsBegin_Private()
43 …PetscCall(PetscOptionsHelpPrintedCheck(PetscOptionsHelpPrintedSingleton, prefix, title, &PetscOpti… in PetscOptionsBegin_Private()
49 PetscCall(PetscStrallocpy(prefix, &PetscOptionsObject->prefix)); in PetscOptionsBegin_Private()
74 …PetscCall(PetscOptionsBegin_Private(PetscOptionsObject, obj->comm, obj->prefix, title, obj->mansec… in PetscObjectOptionsBegin_Private()
170 …PetscOptionsObject->pprefix = PetscOptionsObject->prefix; /* SAWs will change this, so cannot pass… in PetscOptionsSAWsInput()
339 …scPrintf(PETSC_COMM_WORLD, "-%s%s: <", PetscOptionsObject->prefix ? PetscOptionsObject->prefix : "… in PetscOptionsGetFromTextInput()
399 …scPrintf(PETSC_COMM_WORLD, "-%s%s: <", PetscOptionsObject->prefix ? PetscOptionsObject->prefix : "… in PetscOptionsGetFromTextInput()
428 …C_COMM_WORLD, "-%s%s: <%d>: %s (%s) ", PetscOptionsObject->prefix ? PetscOptionsObject->prefix : "… in PetscOptionsGetFromTextInput()
434 …RG_OUTOFRANGE, "Argument: -%s%s %lld", PetscOptionsObject->prefix ? PetscOptionsObject->prefix : "… in PetscOptionsGetFromTextInput()
[all …]
H A Dpname.c68 …? " " : "", obj->name ? obj->name : "", obj->prefix ? " (" : "", obj->prefix ? obj->prefix : "", o… in PetscObjectPrintClassNamePrefixType()
/petsc/share/petsc/saws/js/
H A DgetCmdOptions.js4 function getCmdOptions(data,endtag,prefix,option) argument
6 if(prefix == undefined)
7 prefix = "";
22 ret += "-" + prefix + "pc_type " + data[endtag].pc_type + endl;
23 ret += "-" + prefix + "ksp_type " + data[endtag].ksp_type + endl;
28 ret += "-" + prefix + "pc_mg_type " + data[endtag].pc_mg_type + endl;
29 ret += "-" + prefix + "pc_mg_levels " + data[endtag].pc_mg_levels + endl;
32 ret += "-" + prefix + "pc_gamg_type " + data[endtag].pc_gamg_type + endl;
33 ret += "-" + prefix + "pc_gamg_levels " + data[endtag].pc_gamg_levels + endl;
36 ret += "-" + prefix + "pc_fieldsplit_type " + data[endtag].pc_fieldsplit_type + endl;
[all …]
/petsc/src/ksp/ksp/interface/
H A Ditcl.c40 PetscErrorCode KSPSetOptionsPrefix(KSP ksp, const char prefix[]) in KSPSetOptionsPrefix() argument
53 PetscCall(PetscStrlen(prefix, &len)); in KSPSetOptionsPrefix()
55 PetscCall(PetscStrncpy(newprefix, prefix, len + sizeof(suffix))); in KSPSetOptionsPrefix()
61 PetscCall(PCSetOptionsPrefix(ksp->pc, prefix)); in KSPSetOptionsPrefix()
62 PetscCall(PetscObjectSetOptionsPrefix((PetscObject)ksp, prefix)); in KSPSetOptionsPrefix()
85 PetscErrorCode KSPAppendOptionsPrefix(KSP ksp, const char prefix[]) in KSPAppendOptionsPrefix() argument
90 PetscCall(PCAppendOptionsPrefix(ksp->pc, prefix)); in KSPAppendOptionsPrefix()
91 PetscCall(PetscObjectAppendOptionsPrefix((PetscObject)ksp, prefix)); in KSPAppendOptionsPrefix()
179 const char *prefix; in KSPGetGuess() local
182 PetscCall(PetscObjectGetOptionsPrefix((PetscObject)ksp, &prefix)); in KSPGetGuess()
[all …]
H A Diterativ.c132 const char *prefix; in KSPMonitorResidual() local
137 PetscCall(PetscObjectGetOptionsPrefix((PetscObject)ksp, &prefix)); in KSPMonitorResidual()
140 …if (n == 0 && prefix) PetscCall(PetscViewerASCIIPrintf(viewer, " Residual norms for %s solve.\n",… in KSPMonitorResidual()
277 const char *prefix; in KSPMonitorResidualShort() local
282 PetscCall(PetscObjectGetOptionsPrefix((PetscObject)ksp, &prefix)); in KSPMonitorResidualShort()
285 …if (its == 0 && prefix) PetscCall(PetscViewerASCIIPrintf(viewer, " Residual norms for %s solve.\n… in KSPMonitorResidualShort()
344 const char *prefix; in KSPMonitorResidualRange() local
350 PetscCall(PetscObjectGetOptionsPrefix((PetscObject)ksp, &prefix)); in KSPMonitorResidualRange()
354 …if (it == 0 && prefix) PetscCall(PetscViewerASCIIPrintf(viewer, " Residual norms for %s solve.\n"… in KSPMonitorResidualRange()
397 const char *prefix; in KSPMonitorTrueResidual() local
[all …]
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscopt.pxi43 cdef getprefix(prefix, deft=None): argument
44 if prefix is None:
45 prefix = deft
46 elif isinstance(prefix, Options):
47 prefix = prefix.prefix
48 elif isinstance(prefix, Object):
49 prefix = prefix.getOptionsPrefix()
50 elif not isinstance(prefix, str):
51 raise TypeError('option prefix must be string')
52 if not prefix:
[all …]
H A DOptions.pyx11 prefix : str, optional
32 Read command line options prepended with a prefix.
47 def __init__(self, prefix = None): argument
49 self.prefix = prefix
67 property prefix:
72 def __set__(self, prefix): argument
73 self._prefix = getprefix(prefix)
116 def prefixPush(self, prefix: str | Options | Object | None) -> None:
117 """Push a prefix for the options database.
126 prefix = getprefix(prefix)
[all …]
/petsc/src/ksp/ksp/tutorials/
H A Dex87.c6 static PetscErrorCode MatAndISLoad(const char *prefix, const char *identifier, Mat A, IS is, Mat N,…
32 char dir[PETSC_MAX_PATH_LEN], prefix[PETSC_MAX_PATH_LEN]; in main() local
56 …PetscCall(PetscSNPrintf(prefix, sizeof(prefix), "%s/%s", dir, id == 3 ? "D" : (id == 2 ? "E" : (id… in main()
57 PetscCall(MatAndISLoad(prefix, "00", A[0], is[0], aux[0], size)); in main()
58 PetscCall(MatAndISLoad(prefix, "11", A[3], is[1], aux[1], size)); in main()
66 …PetscCall(PetscSNPrintf(prefix, sizeof(prefix), "%s/%s10.dat", dir, id == 3 ? "D" : (id == 2 ? "E"… in main()
67 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, prefix, FILE_MODE_READ, &viewer)); in main()
93 PetscCall(PetscSNPrintf(prefix, sizeof(prefix), "%s/E01.dat", dir)); in main()
94 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, prefix, FILE_MODE_READ, &viewer)); in main()
149 …PetscCall(PetscSNPrintf(prefix, sizeof(prefix), "%s/rhs_%s.dat", dir, id == 3 ? "D" : (id == 1 ? "… in main()
[all …]
H A Dex41.m11 % $prefix/share/petsc/matlab and $prefix/lib/matlab if you ran ./configure with --prefix
/petsc/lib/petsc/bin/maint/abi-compliance-checker/
H A DMakefile1 prefix ?= /usr macro
9 perl Makefile.pl -install -prefix "$(prefix)"
12 perl Makefile.pl -remove -prefix "$(prefix)"
/petsc/config/BuildSystem/config/packages/
H A DSLEPc.py57 prefix = os.path.abspath(os.path.expanduser(self.argDB['prefix']))
62 prefix = os.path.join(self.petscdir.dir,self.arch)
63 self.directory = prefix
70 self.include = [os.path.join(prefix,'include')]
72 self.lib = [os.path.join(prefix,'lib','libslepc')]
74 …self.lib = [os.path.join(prefix,'lib','libslepclme'),'-lslepcmfn -lslepcnep -lslepcpep -lslepcsvd …
75 ….packageDir,[carg + ' ' + self.python.pyexe + ' ./configure --prefix=' + prefix + ' ' + configargs,
H A DMFEM.py69 prefix = os.path.abspath(os.path.expanduser(self.argDB['prefix']))
73 prefix = os.path.join(self.petscdir.dir,self.arch)
99 g.write('PREFIX = '+prefix+'\n')
129 g.write('PETSC_VARS = '+prefix+'/lib/petsc/conf/petscvariables\n')
141 petsclib = '-L'+prefix+'/lib -lpetsc'
143 …petsclib = '-L'+prefix+'/lib -lpetscml -lpetsctao -lpetscts -lpetscsnes -lpetscksp -lpetscdm -lpet…
146 petscrpt = '-Xlinker=-rpath,'+prefix+'/lib'
148 petscrpt = '-Wl,-rpath,'+prefix+'/lib'
157 g.write('SLEPC_VARS = '+prefix+'/lib/slepc/conf/slepc_variables\n')
158 slepclib = '-L'+prefix+'/lib -lslepc'
H A DHPDDM.py47 prefix = os.path.abspath(os.path.expanduser(self.argDB['prefix']))
51 prefix = os.path.join(self.petscdir.dir,self.arch)
52 incDir = os.path.join(prefix,'include')
53 libDir = os.path.join(prefix,self.libDirs[0])
57 ….executeShellCommand(['cp','-rf',os.path.join(self.packageDir,'include'),prefix],timeout=100,log=s…
H A DlibMesh.py35 prefix = os.path.abspath(os.path.expanduser(self.argDB['prefix']))
38 prefix = os.path.join(self.petscdir.dir,self.arch)
40 self.addPost(self.packageDir, [newdir + ' ./configure --prefix=' + prefix,
/petsc/config/BuildSystem/config/compile/
H A DC.py152 def getTarget(self, source, shared, prefix = 'lib'): argument
155 if prefix:
156 if not (len(base) > len(prefix) and base[:len(prefix)] == prefix):
157 base = prefix+base
246 def getTarget(self, source, shared, prefix = 'lib'): argument
249 if prefix:
250 if not (len(base) > len(prefix) and base[:len(prefix)] == prefix):
251 base = prefix+base
/petsc/src/mat/tests/
H A Dex152.c36 char fname[PETSC_MAX_PATH_LEN], prefix[PETSC_MAX_PATH_LEN] = ""; in main() local
50 …cOptionsString("-prefix", "Path and prefix of test file", "", prefix, prefix, sizeof(prefix), &flg… in main()
56 PetscCall(PetscSNPrintf(fname, sizeof(fname), "%s.%d.graph", prefix, rank)); in main()
79 PetscCall(PetscSNPrintf(fname, sizeof(fname), "%s.%d.graph.xyz", prefix, rank)); in main()
H A Dex227.c9 PetscBool prefix = PETSC_FALSE, flg; in main() local
15 PetscCall(PetscOptionsGetBool(NULL, NULL, "-with_prefix", &prefix, NULL)); in main()
17 PetscCall(MatSetOptionsPrefix(mat, prefix ? "prefix_" : NULL)); in main()
/petsc/config/BuildSystem/config/
H A Dframework.py145 self._tmpDir = tempfile.mkdtemp(prefix = 'petsc-')
656 prefix = mod.replace('.', '_')
658 prefix = ''
659 return prefix
664 prefix = child.headerPrefix
666 prefix = self.getPrefix(child)
667 return prefix
672 prefix = child.substPrefix
674 prefix = self.getPrefix(child)
675 return prefix
[all …]
/petsc/
H A Dsetup.py118 def config(prefix): argument
121 '--prefix=' + prefix,
175 os.environ.get(prefix + '_BUILD_BACKEND')
176 for prefix in ('_PYPROJECT_HOOKS', 'PEP517')
190 contents = contents.replace(prefix, '${PETSC_DIR}')
261 prefix = os.path.join(root_dir, 'petsc')
265 config(prefix)
272 for dirpath, _, filenames in os.walk(prefix):
/petsc/src/ksp/pc/impls/hpddm/
H A Dpchpddm.cxx330 char prefix[256], deprecated[256]; in PCSetFromOptions_HPDDM() local
356 PetscCall(PetscSNPrintf(prefix, sizeof(prefix), "-pc_hpddm_levels_%d_eps_nev", i)); in PCSetFromOptions_HPDDM()
357 …PetscCall(PetscOptionsBoundedInt(prefix, "Local number of deflation vectors computed by SLEPc", "E… in PCSetFromOptions_HPDDM()
359 … PetscCall(PetscSNPrintf(prefix, sizeof(prefix), "-pc_hpddm_levels_%d_eps_threshold_absolute", i)); in PCSetFromOptions_HPDDM()
360 PetscCall(PetscOptionsDeprecated(deprecated, prefix, "3.24", nullptr)); in PCSetFromOptions_HPDDM()
361 …PetscCall(PetscOptionsReal(prefix, "Local absolute threshold for selecting deflation vectors retur… in PCSetFromOptions_HPDDM()
364 PetscCall(PetscSNPrintf(prefix, sizeof(prefix), "-pc_hpddm_levels_%d_svd_nsv", i)); in PCSetFromOptions_HPDDM()
369 …PetscCall(PetscOptionsBoundedInt(prefix, "Local number of deflation vectors computed by SLEPc", "S… in PCSetFromOptions_HPDDM()
374 … PetscCall(PetscSNPrintf(prefix, sizeof(prefix), "-pc_hpddm_levels_%d_svd_threshold_relative", i)); in PCSetFromOptions_HPDDM()
375 PetscCall(PetscOptionsDeprecated(deprecated, prefix, "3.24", nullptr)); in PCSetFromOptions_HPDDM()
[all …]
/petsc/src/dm/tests/
H A Dex12.m13 % $prefix/share/petsc/matlab and $prefix/lib/petsc/matlab if you ran ./configure with --prefix
/petsc/config/BuildSystem/
H A Dlogger.py41 def build_multiline_message(sup_title, text, divider_char = None, length = None, prefix = None, **k… argument
47 if prefix is None:
48 prefix = ' '*2
53 kwargs.setdefault('initial_indent',prefix)
54 kwargs.setdefault('subsequent_indent',prefix)
344 …Level = -1, debugSection = 'screen', indent = 1, comm = None, rmDir = 1, prefix = None, title = No… argument
346 rmDir = build_multiline_message(title, self.logStripDirectory(msg), prefix=prefix)
347 msg = build_multiline_message(title, msg, prefix=prefix)
/petsc/src/vec/vec/interface/
H A Dveccreate.c80 PetscErrorCode VecCreateFromOptions(MPI_Comm comm, const char *prefix, PetscInt bs, PetscInt m, Pet… in VecCreateFromOptions() argument
85 if (prefix) PetscCall(VecSetOptionsPrefix(*vec, prefix)); in VecCreateFromOptions()
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/
H A D_doc_section_base.py31 prefix: str
54 prefix, arg, descr = self.split_param(text, prefixes, sep)
64 if prefix:
65 arg = text.split(prefix, maxsplit=1)[1].strip()
72 self.prefix = prefix
107 prefix = ''
111 prefix = next(filter(stripped.startswith, prefixes))
113 prefix = ''
116 rest = stripped.split(prefix, maxsplit=1)[1].strip()
117 assert len(prefix) >= 1
[all …]

12345678910>>...17