Lines Matching refs:coordSize
1564 PetscErrorCode DMPlexComputeProjection3Dto2D(PetscInt coordSize, PetscScalar coords[], PetscReal R[… in DMPlexComputeProjection3Dto2D() argument
1594 for (p = 0; p < coordSize / dim; p++) { in DMPlexComputeProjection3Dto2D()
2691 PetscInt cdim, coordSize, d; in DMPlexComputeGeometryFVM_1D_Internal() local
2696 PetscCall(DMPlexGetCellCoordinates(dm, cell, &isDG, &coordSize, &array, &coords)); in DMPlexComputeGeometryFVM_1D_Internal()
2697 …PetscCheck(coordSize == cdim * 2, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Edge has %" PetscInt_FMT … in DMPlexComputeGeometryFVM_1D_Internal()
2725 PetscCall(DMPlexRestoreCellCoordinates(dm, cell, &isDG, &coordSize, &array, &coords)); in DMPlexComputeGeometryFVM_1D_Internal()
2735 PetscInt coordSize; in DMPlexComputeGeometryFVM_2D_Internal() local
2753 PetscCall(DMPlexGetCellCoordinates(dm, cell, &isDG, &coordSize, &array, &coords)); in DMPlexComputeGeometryFVM_2D_Internal()
2790 PetscCall(DMPlexRestoreCellCoordinates(dm, cell, &isDG, &coordSize, &array, &coords)); in DMPlexComputeGeometryFVM_2D_Internal()
2800 PetscInt coordSize; in DMPlexComputeGeometryFVM_3D_Internal() local
2829 PetscCall(DMPlexGetCellCoordinates(dm, cell, &isDG, &coordSize, &array, &coords)); in DMPlexComputeGeometryFVM_3D_Internal()
2900 PetscCall(DMPlexRestoreCellCoordinates(dm, cell, &isDG, &coordSize, &array, &coords)); in DMPlexComputeGeometryFVM_3D_Internal()
3552 PetscInt coordSize, i, j, k, l, m, maxIts = 7, numV = (1 << dimR); in DMPlexCoordinatesToReference_Tensor() local
3559 PetscCall(DMPlexVecGetClosure(dm, NULL, coords, cell, &coordSize, &coordsScalar)); in DMPlexCoordinatesToReference_Tensor()
3560 …coordSize >= dimC * numV, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Expecting at least %" PetscInt_FMT " c… in DMPlexCoordinatesToReference_Tensor()
3561 PetscCall(DMGetWorkArray(dm, 2 * coordSize + dimR + dimC, MPIU_REAL, &cellData)); in DMPlexCoordinatesToReference_Tensor()
3564 cellCoeffs = &cellData[coordSize]; in DMPlexCoordinatesToReference_Tensor()
3565 extJ = &cellData[2 * coordSize]; in DMPlexCoordinatesToReference_Tensor()
3566 resNeg = &cellData[2 * coordSize + dimR]; in DMPlexCoordinatesToReference_Tensor()
3586 for (i = 0; i < coordSize; i++) cellCoords[i] = PetscRealPart(coordsScalar[i]); in DMPlexCoordinatesToReference_Tensor()
3648 PetscCall(DMRestoreWorkArray(dm, 2 * coordSize + dimR + dimC, MPIU_REAL, &cellData)); in DMPlexCoordinatesToReference_Tensor()
3649 PetscCall(DMPlexVecRestoreClosure(dm, NULL, coords, cell, &coordSize, &coordsScalar)); in DMPlexCoordinatesToReference_Tensor()
3655 PetscInt coordSize, i, j, k, l, numV = (1 << dimR); in DMPlexReferenceToCoordinates_Tensor() local
3661 PetscCall(DMPlexVecGetClosure(dm, NULL, coords, cell, &coordSize, &coordsScalar)); in DMPlexReferenceToCoordinates_Tensor()
3662 …coordSize >= dimC * numV, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Expecting at least %" PetscInt_FMT " c… in DMPlexReferenceToCoordinates_Tensor()
3663 PetscCall(DMGetWorkArray(dm, 2 * coordSize, MPIU_REAL, &cellData)); in DMPlexReferenceToCoordinates_Tensor()
3665 cellCoeffs = &cellData[coordSize]; in DMPlexReferenceToCoordinates_Tensor()
3683 for (i = 0; i < coordSize; i++) cellCoords[i] = PetscRealPart(coordsScalar[i]); in DMPlexReferenceToCoordinates_Tensor()
3722 PetscCall(DMRestoreWorkArray(dm, 2 * coordSize, MPIU_REAL, &cellData)); in DMPlexReferenceToCoordinates_Tensor()
3723 PetscCall(DMPlexVecRestoreClosure(dm, NULL, coords, cell, &coordSize, &coordsScalar)); in DMPlexReferenceToCoordinates_Tensor()
3729 PetscInt numComp, pdim, i, j, k, l, m, coordSize; in DMPlexCoordinatesToReference_FE() local
3741 …PetscCall(DMPlexVecGetOrientedClosure(dm, NULL, PETSC_FALSE, coords, cell, 0, &coordSize, &nodes)); in DMPlexCoordinatesToReference_FE()
3787 PetscCall(DMPlexVecRestoreClosure(dm, NULL, coords, cell, &coordSize, &nodes)); in DMPlexCoordinatesToReference_FE()
3794 PetscInt numComp, pdim, i, j, k, l, coordSize; in DMPlexReferenceToCoordinates_FE() local
3804 …PetscCall(DMPlexVecGetOrientedClosure(dm, NULL, PETSC_FALSE, coords, cell, 0, &coordSize, &nodes)); in DMPlexReferenceToCoordinates_FE()
3824 PetscCall(DMPlexVecRestoreClosure(dm, NULL, coords, cell, &coordSize, &nodes)); in DMPlexReferenceToCoordinates_FE()