| /petsc/src/mat/interface/ |
| H A D | matreg.c | 30 MatRootName names = MatRootNameList; in MatGetRootType_Private() local 36 while (names) { in MatGetRootType_Private() 37 PetscCall(PetscStrcmp(inType, names->mname, &found)); in MatGetRootType_Private() 38 if (!found) PetscCall(PetscStrcmp(inType, names->sname, &found)); in MatGetRootType_Private() 41 *rootType = names->rname; in MatGetRootType_Private() 44 names = names->next; in MatGetRootType_Private() 67 MatRootName names = MatRootNameList; in MatGetMPIMatType_Private() local 73 while (names) { in MatGetMPIMatType_Private() 74 PetscCall(PetscStrcmp(inType, names->sname, &found)); in MatGetMPIMatType_Private() 75 if (!found) PetscCall(PetscStrcmp(inType, names->mname, &found)); in MatGetMPIMatType_Private() [all …]
|
| H A D | dlregismat.c | 29 MatRootName nnames, names = MatRootNameList; in MatFinalizePackage() local 33 while (names) { in MatFinalizePackage() 34 nnames = names->next; in MatFinalizePackage() 35 PetscCall(PetscFree(names->rname)); in MatFinalizePackage() 36 PetscCall(PetscFree(names->sname)); in MatFinalizePackage() 37 PetscCall(PetscFree(names->mname)); in MatFinalizePackage() 38 PetscCall(PetscFree(names)); in MatFinalizePackage() 39 names = nnames; in MatFinalizePackage()
|
| /petsc/src/ts/tutorials/ |
| H A D | extchem.py | 17 (t,v,names) = PetscBinaryIOTrajectory.ReadTrajectory(directory) 23 …names.index('Temp')],v[i][names.index('CH4')],v[i][names.index('O2')],v[i][names.index('N2')],v[i]…
|
| H A D | extchem.c | 79 char **snames, *names; in main() local 112 PetscCall(PetscMalloc1((user.Nspec + 1) * LENGTHOFSPECNAME, &names)); in main() 113 PetscCall(PetscStrncpy(names, "Temp", (user.Nspec + 1) * LENGTHOFSPECNAME)); in main() 114 TC_getSnames(user.Nspec, names + LENGTHOFSPECNAME); in main() 116 for (i = 0; i < user.Nspec + 1; i++) snames[i] = names + i * LENGTHOFSPECNAME; in main() 120 PetscCall(PetscFree(names)); in main() 284 char *names[maxspecies]; in FormInitialSolution() local 293 PetscCall(PetscOptionsGetStringArray(NULL, NULL, "-initial_species", names, &smax, &flg)); in FormInitialSolution() 301 int ispec = TC_getSpos(names[i], (int)strlen(names[i])); in FormInitialSolution() 302 PetscCheck(ispec >= 0, PETSC_COMM_SELF, PETSC_ERR_USER, "Could not find species %s", names[i]); in FormInitialSolution() [all …]
|
| H A D | extchemfield.c | 100 char **snames, *names; in main() local 133 PetscCall(PetscMalloc1((user.Nspec + 1) * LENGTHOFSPECNAME, &names)); in main() 134 PetscCall(PetscStrncpy(names, "Temp", (user.Nspec + 1) * LENGTHOFSPECNAME)); in main() 135 TC_getSnames(user.Nspec, names + LENGTHOFSPECNAME); in main() 137 for (i = 0; i < user.Nspec + 1; i++) snames[i] = names + i * LENGTHOFSPECNAME; in main() 141 PetscCall(PetscFree(names)); in main() 207 const char *const *names; in main() local 213 PetscCall(TSMonitorLGGetVariableNames(ts, &names)); in main() 214 if (names) { in main() 218 … if (bmax[i] > .01) PetscCall(PetscPrintf(PETSC_COMM_SELF, "%s %g\n", names[i], (double)bmax[i])); in main()
|
| /petsc/src/sys/tests/ |
| H A D | ex5.c | 8 char **names, **values; in main() local 16 PetscCall(PetscOptionsLeftGet(NULL, &N, &names, &values)); in main() 19 …PetscCall(PetscPrintf(PETSC_COMM_WORLD, "Option left: name:-%s value: %s\n", names[i], values[i])); in main() 21 PetscCall(PetscPrintf(PETSC_COMM_WORLD, "Option left: name:-%s (no value)\n", names[i])); in main() 24 PetscCall(PetscOptionsLeftRestore(NULL, &N, &names, &values)); in main()
|
| /petsc/lib/petsc/bin/ |
| H A D | PetscBinaryIOTrajectory.py | 30 names = [] 37 names.append("".join(map(chr, s))[0:-1]) 41 return (t,v,names) 43 def PlotTrajectories(t,v,names,subnames): argument 44 print(names) 47 sub.append(names.index(s))
|
| /petsc/src/sys/logging/state/ |
| H A D | logregistry.c | 206 const char **names; member 212 …amesCreate_Internal(MPI_Comm comm, PetscInt num_names_local, const char **names, PetscInt *num_nam… in PetscLogGlobalNamesCreate_Internal() argument 234 PetscCall(PetscStrallocpy(names[i], &global_names[i])); in PetscLogGlobalNamesCreate_Internal() 248 PetscCall(PetscStrlen(names[i], &i_len)); in PetscLogGlobalNamesCreate_Internal() 288 PetscCall(PetscStrallocpy(names[s], &global_names[num_names_global])); in PetscLogGlobalNamesCreate_Internal() 289 PetscCall(PetscStrncpy(str_buffer, names[s], max_name_len + 1)); in PetscLogGlobalNamesCreate_Internal() 303 PetscCall(PetscStrncmp(names[s], str_buffer, max_name_len + 1, &same)); in PetscLogGlobalNamesCreate_Internal() 334 …unt_global, &global_names->global_to_local, &global_names->local_to_global, &global_names->names)); in PETSC_PRAGMA_DIAGNOSTIC_IGNORED_END() 349 …for (PetscInt i = 0; i < global_names->count_global; i++) PetscCall(PetscFree(global_names->names[… in PetscLogGlobalNamesDestroy() 350 PetscCall(PetscFree(global_names->names)); in PetscLogGlobalNamesDestroy() [all …]
|
| /petsc/src/sys/classes/draw/impls/x/ |
| H A D | xtext.c | 74 char **names; in PetscDrawXiInitFonts() local 80 names = XListFontsWithInfo(XBWin->disp, "?x??", NFONTS, &cnt, &info); in PetscDrawXiInitFonts() 83 names[i][1] = '\0'; in PetscDrawXiInitFonts() 92 if (cnt > 0) XFreeFontInfo(names, info, cnt); in PetscDrawXiInitFonts() 97 names = XListFontsWithInfo(XBWin->disp, "?x", NFONTS, &cnt, &info); in PetscDrawXiInitFonts() 102 PetscCall(PetscStrlen(names[i], &len)); in PetscDrawXiInitFonts() 104 names[i][1] = '\0'; in PetscDrawXiInitFonts() 114 XFreeFontInfo(names, info, cnt); in PetscDrawXiInitFonts()
|
| /petsc/src/benchmarks/ |
| H A D | benchmarkAssembly.py | 44 names = [] 46 names.append(event) 54 legend(names, 'upper left', shadow = True) 58 names = [] 60 names.append(event) 69 legend(names, 'upper left', shadow = True) 73 names = [] 75 names.append(event) 83 legend(names, 'center right', shadow = True)
|
| H A D | benchmarkExample.py | 203 names = [] 207 names.append(arch+'-'+str(bs)+' '+event) 218 legend(names, 'upper left', shadow = True) 232 names = [] 236 names.append(arch+'-'+str(bs)+' '+event) 246 legend(names, 'upper left', shadow = True) 260 names = [] 264 names.append(arch+'-'+str(bs)+' '+event) 274 legend(names, 'upper left', shadow = True) 304 names = [] [all …]
|
| /petsc/src/dm/ftn-mod/ |
| H A D | petscdmmod.F90 | 143 subroutine DMCreateFieldDecomposition(dm, n, names, iss, dms, ierr) argument 145 character(80), pointer :: names(:) 153 allocate (names(n)) 155 call DMCreateFieldDecompositionGetName(dm, i, names(i), ierr) 160 subroutine DMDestroyFieldDecomposition(dm, n, names, iss, dms, ierr) argument 162 character(80), pointer :: names(:) 169 deallocate (names)
|
| /petsc/src/dm/interface/ftn-custom/ |
| H A D | zdmf.c | 25 char **names; in dmcreatefielddecompositiongetname_() local 26 *ierr = DMCreateFieldDecomposition(*dm, &n, &names, NULL, NULL); in dmcreatefielddecompositiongetname_() 28 *ierr = PetscStrncpy((char *)name, names[*i - 1], l_b); in dmcreatefielddecompositiongetname_() 31 for (PetscInt j = 0; j < n; j++) *ierr = PetscFree(names[j]); in dmcreatefielddecompositiongetname_() 32 *ierr = PetscFree(names); in dmcreatefielddecompositiongetname_()
|
| /petsc/src/sys/objects/ |
| H A D | options.c | 72 char **names; /* option names */ member 955 if (PetscCIOption(options->names[i])) continue; in PetscOptionsView() 966 if (PetscCIOption(options->names[i])) continue; in PetscOptionsView() 968 PetscCall(PetscViewerASCIIPrintf(viewer, "-%s %s", options->names[i], options->values[i])); in PetscOptionsView() 970 PetscCall(PetscViewerASCIIPrintf(viewer, "-%s", options->names[i])); in PetscOptionsView() 987 if (PetscCIOption(defaultoptions->names[i])) continue; in PetscOptionsLeftError() 995 if (PetscCIOption(defaultoptions->names[i])) continue; in PetscOptionsLeftError() 996 …Printf)(" Option left: name:-%s value: %s source: %s\n", defaultoptions->names[i], defaultoptions… in PetscOptionsLeftError() 997 …rintf)(" Option left: name:-%s (no value) source: %s\n", defaultoptions->names[i], PetscOptionSou… in PetscOptionsLeftError() 1010 if (PetscCIOption(options->names[i])) continue; in PetscOptionsViewError() [all …]
|
| /petsc/config/BuildSystem/config/ |
| H A D | compilers.py | 59 names = {} 60 names['CC'] = 'No C compiler found.' 61 names['CPP'] = 'No C preprocessor found.' 62 names['CUDAC'] = 'No CUDA compiler found.' 63 names['CUDAPP'] = 'No CUDA preprocessor found.' 64 names['HIPC'] = 'No HIP compiler found.' 65 names['HIPPP'] = 'No HIP preprocessor found.' 66 names['SYCLC'] = 'No SYCL compiler found.' 67 names['SYCLPP'] = 'No SYCL preprocessor found.' 68 names['CXX'] = 'No C++ compiler found.' [all …]
|
| H A D | base.py | 229 …def getExecutable(self, names, path = [], getFullPath = 0, useDefaultPath = 0, resultName = '', se… argument 235 if isinstance(names,str) and names.startswith('/'): 236 path = os.path.dirname(names) 237 names = os.path.basename(names) 239 if isinstance(names, str): 240 names = [names] 260 varName = names[0] 263 for name in names: 273 for name in names: 284 for name in names: [all …]
|
| /petsc/src/sys/classes/viewer/impls/draw/ftn-custom/ |
| H A D | zdrawvf.c | 22 …etscViewer *v, char *host, char *label, char *metric, int l, const char **names, int *x, int *y, i… in petscviewermonitorlgsetup_() argument 29 *ierr = PetscViewerMonitorLGSetUp(*v, t1, t2, t3, l, names, *x, *y, *m, *n); in petscviewermonitorlgsetup_()
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_dmshell.py | 89 names = [f'f_{i}' for i in range(len(ises))] 90 return names, ises, None 98 names, ises, _ = create_field_decomposition_only_is_names(dm) 100 return names, ises, dms 110 names, ises, dms = self.dm.createFieldDecomposition() 111 self.assertEqual(len(names), len(ises)) 115 self.assertEqual(names, checknames) 117 for n in names:
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscdmshell.pxi | 341 names, ises, dms = decomp(Dm, *args, **kargs) 344 if names is not None: 345 clen[0] = <PetscInt>len(names) 353 if namelist != NULL and names is not None: 354 CHKERR(PetscMalloc(len(names)*sizeof(char**), namelist)) 355 for i in range(len(names)): 356 names[i] = str2bytes(names[i], &cname) 387 names, innerises, outerises, dms = decomp(Dm, *args, **kargs) 390 if names is not None: 391 clen[0] = <PetscInt>len(names) [all …]
|
| /petsc/share/petsc/matlab/ |
| H A D | PetscReadBinaryTrajectory.m | 34 names = {' '}; variable 36 names{i} = deblank(char(read(fd,sizes(i),'uchar')))'; 76 varargout{3} = names;
|
| /petsc/src/ts/interface/ |
| H A D | tsmon.c | 482 PetscCall(PetscStrArrayDestroy(&(*ctx)->names)); in TSMonitorLGCtxDestroy() 1034 if (!ctx->names) { in TSMonitorLGSolution() 1040 char **names; in TSMonitorLGSolution() local 1042 PetscCall(PetscMalloc1(n + 1, &names)); in TSMonitorLGSolution() 1044 PetscCall(PetscMalloc1(5, &names[i])); in TSMonitorLGSolution() 1045 PetscCall(PetscSNPrintf(names[i], 5, "%" PetscInt_FMT, i)); in TSMonitorLGSolution() 1047 names[n] = NULL; in TSMonitorLGSolution() 1048 ctx->names = names; in TSMonitorLGSolution() 1051 if (ctx->names && !ctx->displaynames) { in TSMonitorLGSolution() 1063 } else if (ctx->names) { in TSMonitorLGSolution() [all …]
|
| /petsc/src/ksp/ksp/tests/benchmarkscatters/ |
| H A D | Streams-Intel | 4 Number of MPI processes 1 Processor names thing05.ftm.alcf.anl.gov 8 Number of MPI processes 2 Processor names thing05.ftm.alcf.anl.gov thing05.ftm.alcf.anl.gov 13 Number of MPI processes 3 Processor names thing05.ftm.alcf.anl.gov thing05.ftm.alcf.anl.gov thing0… 19 Number of MPI processes 4 Processor names thing05.ftm.alcf.anl.gov thing05.ftm.alcf.anl.gov thing0… 26 Number of MPI processes 5 Processor names thing05.ftm.alcf.anl.gov thing05.ftm.alcf.anl.gov thing0… 34 Number of MPI processes 6 Processor names thing05.ftm.alcf.anl.gov thing05.ftm.alcf.anl.gov thing0… 43 Number of MPI processes 7 Processor names thing05.ftm.alcf.anl.gov thing05.ftm.alcf.anl.gov thing0… 53 Number of MPI processes 8 Processor names thing05.ftm.alcf.anl.gov thing05.ftm.alcf.anl.gov thing0… 64 Number of MPI processes 9 Processor names thing05.ftm.alcf.anl.gov thing05.ftm.alcf.anl.gov thing0… 76 Number of MPI processes 10 Processor names thing05.ftm.alcf.anl.gov thing05.ftm.alcf.anl.gov thing… [all …]
|
| H A D | Streams-MPICH | 4 Number of MPI processes 1 Processor names thing05.ftm.alcf.anl.gov 8 Number of MPI processes 2 Processor names thing05.ftm.alcf.anl.gov thing05.ftm.alcf.anl.gov 13 Number of MPI processes 3 Processor names thing05.ftm.alcf.anl.gov thing05.ftm.alcf.anl.gov thing0… 19 Number of MPI processes 4 Processor names thing05.ftm.alcf.anl.gov thing05.ftm.alcf.anl.gov thing0… 26 Number of MPI processes 5 Processor names thing05.ftm.alcf.anl.gov thing05.ftm.alcf.anl.gov thing0… 34 Number of MPI processes 6 Processor names thing05.ftm.alcf.anl.gov thing05.ftm.alcf.anl.gov thing0… 43 Number of MPI processes 7 Processor names thing05.ftm.alcf.anl.gov thing05.ftm.alcf.anl.gov thing0… 53 Number of MPI processes 8 Processor names thing05.ftm.alcf.anl.gov thing05.ftm.alcf.anl.gov thing0… 64 Number of MPI processes 9 Processor names thing05.ftm.alcf.anl.gov thing05.ftm.alcf.anl.gov thing0… 76 Number of MPI processes 10 Processor names thing05.ftm.alcf.anl.gov thing05.ftm.alcf.anl.gov thing… [all …]
|
| /petsc/src/dm/impls/da/ |
| H A D | dacorn.c | 70 PetscErrorCode DMDAGetFieldNames(DM da, const char *const **names) in DMDAGetFieldNames() argument 75 *names = (const char *const *)dd->fieldname; in DMDAGetFieldNames() 98 PetscErrorCode DMDASetFieldNames(DM da, const char *const names[]) in DMDASetFieldNames() argument 106 while (names[nf++]) { } in DMDASetFieldNames() 108 PetscCall(PetscStrArrayallocpy(names, &fieldname)); in DMDASetFieldNames()
|
| /petsc/config/BuildSystem/ |
| H A D | help.py | 65 for section, names in items: 67 for name in names[1]: 126 for section, names in items: 131 for name in names[1]:
|