Home
last modified time | relevance | path

Searched refs:flip (Results 1 – 16 of 16) sorted by relevance

/petsc/src/dm/dt/tests/ !
H A Dex4.c69 const PetscScalar *flip = pointFlips ? pointFlips[j] : NULL; in CheckSymmetry() local
75 …< dim; l++) valsCopy[kLocal * dim + l] = vals[(offset + k) * dim + l] * (flip ? flip[kLocal] : 1.); in CheckSymmetry()
97 …valsCopy2[(offset + k) * dim + l] = valsCopy[kLocal * dim + l] * (flip ? PetscConj(flip[kLocal]) :… in CheckSymmetry()
/petsc/src/dm/impls/plex/ !
H A Dplex.c6491 const PetscScalar *flip = flips ? flips[p] : NULL; in DMPlexVecGetClosure_Static() local
6504 if (flip) { in DMPlexVecGetClosure_Static()
6505 for (d = 0; d < dof; d++) array[clperm[offset + d]] *= flip[d]; in DMPlexVecGetClosure_Static()
6513 if (flip) { in DMPlexVecGetClosure_Static()
6514 for (d = 0; d < dof; d++) array[offset + d] *= flip[d]; in DMPlexVecGetClosure_Static()
6541 const PetscScalar *flip = flips ? flips[p] : NULL; in DMPlexVecGetClosure_Fields_Static() local
6552 if (flip) { in DMPlexVecGetClosure_Fields_Static()
6553 for (b = 0; b < fdof; b++) array[clperm[offset + b]] *= flip[b]; in DMPlexVecGetClosure_Fields_Static()
6561 if (flip) { in DMPlexVecGetClosure_Fields_Static()
6562 for (b = 0; b < fdof; b++) array[offset + b] *= flip[b]; in DMPlexVecGetClosure_Fields_Static()
[all …]
H A Dplexceed.c122 PetscBool flip = PETSC_FALSE; in DMPlexGetLocalOffsets() local
140 if (orients[start] < 0) flip = PETSC_TRUE; in DMPlexGetLocalOffsets()
145 if (flip) { in DMPlexGetLocalOffsets()
H A Dplexfluent.c368 PetscBool flip = PETSC_FALSE; in ReorderTetrahedron() local
381 flip = eornt != -(eornt2 + 1) ? PETSC_TRUE : PETSC_FALSE; in ReorderTetrahedron()
391 if (flip) { in ReorderTetrahedron()
H A Dplextree.c1303 const PetscScalar *flip; in DMPlexComputeAnchorMatrix_Tree_Direct() local
1315 flip = (flips && flips[i]) ? flips[i][o] : NULL; in DMPlexComputeAnchorMatrix_Tree_Direct()
1352 if (flip) { in DMPlexComputeAnchorMatrix_Tree_Direct()
1354 for (s = 0; s < nWorkP; s++) scwork[r * nWorkP + s] *= flip[r]; in DMPlexComputeAnchorMatrix_Tree_Direct()
1463 const PetscScalar *flip = flips ? flips[i] : NULL; in DMPlexReferenceTreeGetChildrenMatrices() local
1472 if (flip) { in DMPlexReferenceTreeGetChildrenMatrices()
1475 …or (j = 0; j < aDof; j++) refPointFieldMats[p - pRefStart][f][k * numCols + colOff + j] *= flip[j]; in DMPlexReferenceTreeGetChildrenMatrices()
1673 const PetscScalar *flip = flips ? flips[i] : NULL; in DMPlexComputeAnchorMatrix_Tree_FromReference() local
1705 …at[r * numCols + offset + col] * vals[aMatOffset + aNumFillCols * k + j] * (flip ? flip[col] : 1.); in DMPlexComputeAnchorMatrix_Tree_FromReference()
1729 …ffset + numFillCols * r + k + col] += pointMat[r * numCols + offset + j] * (flip ? flip[col] : 1.); in DMPlexComputeAnchorMatrix_Tree_FromReference()
H A Dplexsubmesh.c1557 PetscBool flip = PETSC_FALSE; in DMPlexConstructCohesiveCells_Internal() local
1563 flip = vals[0] < 0 ? PETSC_TRUE : PETSC_FALSE; in DMPlexConstructCohesiveCells_Internal()
1570 coneONew[0] = flip ? -(nconeO[nc] + 1) : nconeO[nc]; in DMPlexConstructCohesiveCells_Internal()
2150 …Complete(DM dm, DMLabel label, DMLabel blabel, PetscInt bvalue, PetscBool flip, PetscBool split, D… in DMPlexLabelCohesiveComplete() argument
2155 const PetscInt rev = flip ? -1 : 1; in DMPlexLabelCohesiveComplete()
H A Dplexcreate.c1055 PetscInt face = faces[f], flip = 1, label_value = -1, coords_size; in DMPlexSetBoxLabel_Internal() local
1071 if (orients[start] < 0) flip = -1; in DMPlexSetBoxLabel_Internal()
1081 …for (PetscInt d = 0; d < dim; ++d) vec[d] = flip * (PetscRealPart(coords[1 * dim + d]) - PetscReal… in DMPlexSetBoxLabel_Internal()
1098 normal[0] = flip * ((vec1[1] * vec2[2]) - (vec1[2] * vec2[1])); in DMPlexSetBoxLabel_Internal()
1099 normal[1] = flip * ((vec1[2] * vec2[0]) - (vec1[0] * vec2[2])); in DMPlexSetBoxLabel_Internal()
1100 normal[2] = flip * ((vec1[0] * vec2[1]) - (vec1[1] * vec2[0])); in DMPlexSetBoxLabel_Internal()
H A Dplexgeometry.c2831 …PetscBool flip = isHybrid && f == 0 ? PETSC_TRUE : PETSC_FALSE; /* The first hybrid face is revers… in DMPlexComputeGeometryFVM_3D_Internal() local
2846 if (flip) vtmp = -vtmp; in DMPlexComputeGeometryFVM_3D_Internal()
2871 if (flip) vtmp = -vtmp; in DMPlexComputeGeometryFVM_3D_Internal()
2885 if (flip) vtmp = -vtmp; in DMPlexComputeGeometryFVM_3D_Internal()
/petsc/src/dm/dt/interface/ !
H A Ddtaltv.c595 PetscBool flip = (PetscBool)(j & 1); in PetscDTAltVInterior() local
601 wIntv[idx] += flip ? -(w[i] * v[subset[j]]) : (w[i] * v[subset[j]]); in PetscDTAltVInterior()
661 PetscBool flip = (PetscBool)(j & 1); in PetscDTAltVInteriorMatrix() local
667 intvMat[idx * Nk + i] += flip ? -v[subset[j]] : v[subset[j]]; in PetscDTAltVInteriorMatrix()
747 PetscBool flip = (PetscBool)(j & 1); in PetscDTAltVInteriorPattern() local
755 indices[i * k + j][2] = flip ? -(subset[j] + 1) : subset[j]; in PetscDTAltVInteriorPattern()
/petsc/src/dm/impls/plex/tests/output/ !
H A Dex1_1.out354 [0] <dm:plex> TetGenMeshLawson3D(): Lawson flip: 2 faces.
602 [0] <dm:plex> TetGenMeshLawson3D(): Lawson flip: 1 faces.
714 [0] <dm:plex> TetGenMeshLawson3D(): Lawson flip: 4 faces.
1075 [0] <dm:plex> TetGenMeshLawson3D(): Lawson flip: 2 faces.
1344 [0] <dm:plex> TetGenMeshLawson3D(): Lawson flip: 3 faces.
1574 [0] <dm:plex> TetGenMeshLawson3D(): Lawson flip: 2 faces.
1698 [0] <dm:plex> TetGenMeshLawson3D(): Lawson flip: 6 faces.
1874 [0] <dm:plex> TetGenMeshLawson3D(): Lawson flip: 6 faces.
2230 [0] <dm:plex> TetGenMeshLawson3D(): Lawson flip: 4 faces.
2452 [0] <dm:plex> TetGenMeshLawson3D(): Lawson flip: 4 faces.
[all …]
/petsc/src/ksp/ksp/impls/fetidp/ !
H A Dfetidp.c515 …PetscBool flip = PETSC_FALSE; /* Usually, Stokes is written (B = -\int_\Omega \nabla \cdot … in KSPFETIDPSetUpOperators() local
528 …oint_flip", "Flip the sign of the pressure-velocity (lower-left) block", NULL, flip, &flip, NULL)); in KSPFETIDPSetUpOperators()
725 if (flip) { in KSPFETIDPSetUpOperators()
/petsc/doc/changes/ !
H A D318.md82 - Change calling sequence of `PetscObjectProcessOptionsHandler()` to flip the role of the first two…
/petsc/src/binding/petsc4py/docs/ipynb/ !
H A Ddmplex.ipynb472 …e oriented relative to the give point (e.g. for a cell, you might need to flip some edges to follo…
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/ !
H A DDMPlex.pyx1463 flip: bool, split: bool, DMPlex subdm) -> None:
1477 flip
1478 Flag to flip the submesh normal and replace points
1492 cdef PetscBool flg = flip
/petsc/doc/tutorials/physics/ !
H A Dguide_to_stokes.md299 Suppose that we have made an error in the Jacobian. For instance, let us accidentally flip the sign…
/petsc/doc/manual/ !
H A Dksp.md2052 …- `-pc_fieldsplit_schur_scale` \<real:-1.0> Controls the sign flip of S for `-pc_fieldsplit_schur_…