Searched refs:tup (Results 1 – 4 of 4) sorted by relevance
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/ |
| H A D | pkg_consistency_checks.py | 32 tup = tuplify_version_str(version_str) 33 if tup != min_py_version:
|
| /petsc/src/dm/dt/dualspace/impls/lagrange/ |
| H A D | dspacelagrange.c | 119 …ive_Internal(PetscInt dim, PetscInt degree, PetscReal **nodesets, PetscInt tup[], PetscReal node[]) in PetscNodeRecursive_Internal() argument 127 node[0] = nodesets[degree][tup[0]]; in PetscNodeRecursive_Internal() 128 node[1] = nodesets[degree][tup[1]]; in PetscNodeRecursive_Internal() 132 PetscReal wi = nodesets[degree][degree - tup[i]]; in PetscNodeRecursive_Internal() 134 for (j = 0; j < dim + 1; j++) tup[dim + 1 + j] = tup[j + (j >= i)]; in PetscNodeRecursive_Internal() 135 …PetscCall(PetscNodeRecursive_Internal(dim - 1, degree - tup[i], nodesets, &tup[dim + 1], &node[dim… in PetscNodeRecursive_Internal() 147 PetscInt *tup; in Petsc1DNodeFamilyComputeSimplexNodes() local 158 PetscCall(PetscCalloc1(dim + 2, &tup)); in Petsc1DNodeFamilyComputeSimplexNodes() 168 tup[0] = degree; in Petsc1DNodeFamilyComputeSimplexNodes() 169 for (i = 0; i < dim; i++) tup[0] -= tup[i + 1]; in Petsc1DNodeFamilyComputeSimplexNodes() [all …]
|
| /petsc/src/dm/dt/dualspace/interface/ |
| H A D | dualspace.c | 28 …orCode PetscDualSpaceLatticePointLexicographic_Internal(PetscInt len, PetscInt max, PetscInt tup[]) in PetscDualSpaceLatticePointLexicographic_Internal() argument 32 max -= tup[len]; in PetscDualSpaceLatticePointLexicographic_Internal() 34 tup[len] = 0; in PetscDualSpaceLatticePointLexicographic_Internal() 38 tup[++len]++; in PetscDualSpaceLatticePointLexicographic_Internal() 59 …rorCode PetscDualSpaceTensorPointLexicographic_Internal(PetscInt len, PetscInt max, PetscInt tup[]) in PetscDualSpaceTensorPointLexicographic_Internal() argument 65 if (tup[i] < max) { in PetscDualSpaceTensorPointLexicographic_Internal() 68 tup[i] = 0; in PetscDualSpaceTensorPointLexicographic_Internal() 71 tup[i]++; in PetscDualSpaceTensorPointLexicographic_Internal()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexcreate.c | 2143 …rrorCode DMPlexTensorPointLexicographic_Private(PetscInt len, const PetscInt max[], PetscInt tup[]) in DMPlexTensorPointLexicographic_Private() argument 2149 if (tup[i] < max[i] - 1) { in DMPlexTensorPointLexicographic_Private() 2152 tup[i] = 0; in DMPlexTensorPointLexicographic_Private() 2155 if (i == len) tup[i - 1] = max[i - 1]; in DMPlexTensorPointLexicographic_Private() 2156 else ++tup[i]; in DMPlexTensorPointLexicographic_Private() 2160 static PetscInt TupleToIndex_Private(PetscInt len, const PetscInt max[], const PetscInt tup[]) in TupleToIndex_Private() argument 2162 PetscInt idx = tup[len - 1]; in TupleToIndex_Private() 2166 idx += tup[i]; in TupleToIndex_Private() 2171 static void IndexToTuple_Private(PetscInt len, const PetscInt max[], PetscInt idx, PetscInt tup[]) in IndexToTuple_Private() argument 2174 tup[i] = idx % max[i]; in IndexToTuple_Private() [all …]
|