Lines Matching refs:spaceDim

106 static PetscErrorCode ChangeCoordinates(DM dm, PetscInt spaceDim, PetscScalar vertexCoords[])  in ChangeCoordinates()  argument
117 PetscCall(PetscSectionSetFieldComponents(coordSection, 0, spaceDim)); in ChangeCoordinates()
120 PetscCall(PetscSectionSetDof(coordSection, v, spaceDim)); in ChangeCoordinates()
121 PetscCall(PetscSectionSetFieldDof(coordSection, v, 0, spaceDim)); in ChangeCoordinates()
134 for (d = 0; d < spaceDim; ++d) coords[off + d] = vertexCoords[(v - vStart) * spaceDim + d]; in ChangeCoordinates()
137 PetscCall(DMSetCoordinateDim(dm, spaceDim)); in ChangeCoordinates()
146 static PetscErrorCode CheckFEMGeometry(DM dm, PetscInt cell, PetscInt spaceDim, PetscReal v0Ex[], P… in CheckFEMGeometry() argument
153 for (d = 0; d < spaceDim; ++d) { in CheckFEMGeometry()
155 switch (spaceDim) { in CheckFEMGeometry()
161 … SETERRQ(PETSC_COMM_SELF, PETSC_ERR_PLIB, "Invalid space dimension %" PetscInt_FMT, spaceDim); in CheckFEMGeometry()
165 for (i = 0; i < spaceDim; ++i) { in CheckFEMGeometry()
166 for (j = 0; j < spaceDim; ++j) { in CheckFEMGeometry()
167spaceDim + j], JEx[i * spaceDim + j]) < 10 * PETSC_SMALL, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Invali… in CheckFEMGeometry()
168spaceDim + j], invJEx[i * spaceDim + j]) < 10 * PETSC_SMALL, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Inv… in CheckFEMGeometry()
175 static PetscErrorCode CheckFVMGeometry(DM dm, PetscInt cell, PetscInt spaceDim, PetscReal centroidE… in CheckFVMGeometry() argument
183 for (d = 0; d < spaceDim; ++d) { in CheckFVMGeometry()