Home
last modified time | relevance | path

Searched refs:swarm_coor (Results 1 – 4 of 4) sorted by relevance

/petsc/src/dm/impls/swarm/
H A Dswarmpic_plex.c92 PetscReal *swarm_coor; in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide() local
130 PetscCall(DMSwarmGetField(dm, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()
142 swarm_coor[dim * pcnt + d] = 0.0; in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()
143 …for (k = 0; k < nbasis; k++) swarm_coor[dim * pcnt + d] += T->T[0][q * nbasis + k] * PetscRealPart… in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()
151 PetscCall(DMSwarmRestoreField(dm, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()
167 PetscReal *swarm_coor; in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular() local
220 PetscCall(DMSwarmGetField(dm, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()
232 swarm_coor[dim * pcnt + d] = 0.0; in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()
233 …for (k = 0; k < npe; k++) swarm_coor[dim * pcnt + d] += basis[q][k] * PetscRealPart(elcoor[dim * k… in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()
241 PetscCall(DMSwarmRestoreField(dm, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()
[all …]
H A Dswarmpic_da.c98 PetscReal *swarm_coor; in private_DMSwarmInsertPointsUsingCellDM_DA_Q1() local
166 PetscCall(DMSwarmGetField(dm, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in private_DMSwarmInsertPointsUsingCellDM_DA_Q1()
180 for (d = 0; d < dim; d++) swarm_coor[dim * pcnt + d] = 0.0; in private_DMSwarmInsertPointsUsingCellDM_DA_Q1()
182 for (d = 0; d < dim; d++) swarm_coor[dim * pcnt + d] += basis[q][k] * elcoor[dim * k + d]; in private_DMSwarmInsertPointsUsingCellDM_DA_Q1()
190 PetscCall(DMSwarmRestoreField(dm, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in private_DMSwarmInsertPointsUsingCellDM_DA_Q1()
H A Dswarmpic.c356 PetscReal *swarm_coor; in DMSwarmSetPointsUniformCoordinates() local
458 PetscCall(DMSwarmGetField(sw, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in DMSwarmSetPointsUniformCoordinates()
463 …for (b = 0; b < bs; b++) swarm_coor[bs * (n_curr + n_found) + b] = PetscRealPart(_coor[bs * p + b]… in DMSwarmSetPointsUniformCoordinates()
469 PetscCall(DMSwarmRestoreField(sw, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in DMSwarmSetPointsUniformCoordinates()
509 PetscReal *swarm_coor; in DMSwarmSetPointCoordinates() local
619 PetscCall(DMSwarmGetField(sw, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in DMSwarmSetPointCoordinates()
624 …for (b = 0; b < bs; b++) swarm_coor[bs * (n_curr + n_found) + b] = PetscRealPart(_coor[bs * p + b]… in DMSwarmSetPointCoordinates()
630 PetscCall(DMSwarmRestoreField(sw, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in DMSwarmSetPointCoordinates()
/petsc/src/ksp/ksp/tutorials/
H A Dex70.c531 PetscReal *swarm_coor; in DMSwarmPICInsertPointsCellwise() local
605 PetscCall(DMSwarmGetField(dm, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in DMSwarmPICInsertPointsCellwise()
613 coor_qn = &swarm_coor[dim * plist_e[qn]]; in DMSwarmPICInsertPointsCellwise()
625 PetscCall(DMSwarmRestoreField(dm, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in DMSwarmPICInsertPointsCellwise()
629 PetscCall(DMSwarmGetField(dm, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in DMSwarmPICInsertPointsCellwise()
633 for (d = 0; d < dim; d++) swarm_coor[dim * (ncurr + q) + d] = xp[dim * q + d]; in DMSwarmPICInsertPointsCellwise()
638 PetscCall(DMSwarmRestoreField(dm, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in DMSwarmPICInsertPointsCellwise()
643 PetscCall(DMSwarmGetField(dm, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in DMSwarmPICInsertPointsCellwise()
647 for (d = 0; d < dim; d++) swarm_coor[dim * (ncurr + q) + d] = xp[dim * q + d]; in DMSwarmPICInsertPointsCellwise()
652 PetscCall(DMSwarmRestoreField(dm, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in DMSwarmPICInsertPointsCellwise()