Searched refs:ds2 (Results 1 – 2 of 2) sorted by relevance
161 PetscReal *xi, ds, ds2; in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular() local184 ds2 = 1.0 / (PetscReal)npoints; in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()190 xi[dim * pcnt + 0] *= (1.0 - 1.2 * ds2); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()191 xi[dim * pcnt + 1] *= (1.0 - 1.2 * ds2); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()193 xi[dim * pcnt + 0] += 0.35 * ds2; in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()194 xi[dim * pcnt + 1] += 0.35 * ds2; in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()
2555 const PetscReal ds2 = 0.5 * dis; in snapToCylinder() local2557 if ((PetscAbsScalar(u[0]) <= ds2) && (PetscAbsScalar(u[1]) <= ds2)) { in snapToCylinder()2569 dc = PetscAbsReal(ds2 / sinp); in snapToCylinder()2571 xc = ds2 * x / PetscAbsReal(y); in snapToCylinder()2572 yc = ds2 * PetscSignReal(y); in snapToCylinder()2574 dc = PetscAbsReal(ds2 / cosp); in snapToCylinder()2576 xc = ds2 * PetscSignReal(x); in snapToCylinder()2577 yc = ds2 * y / PetscAbsReal(x); in snapToCylinder()2805 const PetscReal ds2 = dis / 2.0; in DMPlexCreateHexCylinderMesh_Internal() local2825 coords[0 * dim + 0] = -ds2; in DMPlexCreateHexCylinderMesh_Internal()[all …]