| /petsc/src/dm/impls/swarm/ |
| H A D | swarmpic.c | 36 for (PetscInt f = 0; f < (*celldm)->Nfc; ++f) PetscCall(PetscFree((*celldm)->coordFields[f])); in DMSwarmCellDMDestroy() 74 PetscCall(PetscViewerASCIIPrintf(viewer, "coordinate field%s:", celldm->Nfc > 1 ? "s" : "")); in DMSwarmCellDMView() 75 …for (PetscInt f = 0; f < celldm->Nfc; ++f) PetscCall(PetscViewerASCIIPrintf(viewer, " %s", celldm-… in DMSwarmCellDMView() 157 PetscErrorCode DMSwarmCellDMGetCoordinateFields(DMSwarmCellDM celldm, PetscInt *Nfc, const char **n… in DMSwarmCellDMGetCoordinateFields() argument 161 if (Nfc) { in DMSwarmCellDMGetCoordinateFields() 162 PetscAssertPointer(Nfc, 2); in DMSwarmCellDMGetCoordinateFields() 163 *Nfc = celldm->Nfc; in DMSwarmCellDMGetCoordinateFields() 293 PetscErrorCode DMSwarmCellDMCreate(DM dm, PetscInt Nf, const char *dmFields[], PetscInt Nfc, const … in DMSwarmCellDMCreate() argument 302 if (Nfc) PetscAssertPointer(coordFields, 5); in DMSwarmCellDMCreate() 311 b->Nfc = Nfc; in DMSwarmCellDMCreate() [all …]
|
| H A D | swarmpic_plex.c | 86 PetscInt q, npoints_q, e, nel, pcnt, ps, pe, d, k, r, Nfc; in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide() local 125 PetscCall(DMSwarmCellDMGetCoordinateFields(celldm, &Nfc, &coordFields)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide() 126 …cCheck(Nfc == 1, PetscObjectComm((PetscObject)dmc), PETSC_ERR_SUP, "We only support a single coord… in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide() 160 PetscInt ii, jj, q, npoints_q, e, nel, npe, pcnt, ps, pe, d, k, nfaces, Nfc; in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular() local 215 PetscCall(DMSwarmCellDMGetCoordinateFields(celldm, &Nfc, &coordFields)); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular() 216 …cCheck(Nfc == 1, PetscObjectComm((PetscObject)dmc), PETSC_ERR_SUP, "We only support a single coord… in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular() 284 PetscInt dim, ps, pe, nel, nfaces, Nfc; in private_DMSwarmSetPointCoordinatesCellwise_PLEX() local 330 PetscCall(DMSwarmCellDMGetCoordinateFields(celldm, &Nfc, &coordFields)); in private_DMSwarmSetPointCoordinatesCellwise_PLEX() 331 …cCheck(Nfc == 1, PetscObjectComm((PetscObject)dmc), PETSC_ERR_SUP, "We only support a single coord… in private_DMSwarmSetPointCoordinatesCellwise_PLEX()
|
| H A D | swarm.c | 58 PetscInt Np, Nfc; in DMSwarmView_HDF5() local 64 PetscCall(DMSwarmCellDMGetCoordinateFields(celldm, &Nfc, &coordFields)); in DMSwarmView_HDF5() 65 …scCheck(Nfc == 1, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP, "We only support a single coord… in DMSwarmView_HDF5() 479 PetscInt dim, Nf, Nfc, cStart, cEnd, totDim, maxC = 0, totNc = 0; in DMSwarmComputeMassMatrix_Private() local 497 PetscCall(DMSwarmCellDMGetCoordinateFields(celldm, &Nfc, &coordFields)); in DMSwarmComputeMassMatrix_Private() 498 PetscCall(PetscMalloc2(Nfc, &coordVals, Nfc, &bs)); in DMSwarmComputeMassMatrix_Private() 589 …for (PetscInt i = 0; i < Nfc; ++i) PetscCall(DMSwarmGetField(dmc, coordFields[i], &bs[i], NULL, (v… in DMSwarmComputeMassMatrix_Private() 602 for (PetscInt i = 0; i < Nfc; ++i) { in DMSwarmComputeMassMatrix_Private() 630 …for (PetscInt i = 0; i < Nfc; ++i) PetscCall(DMSwarmRestoreField(dmc, coordFields[i], &bs[i], NULL… in DMSwarmComputeMassMatrix_Private() 702 PetscInt cdim, Nf, Nfc, cStart, cEnd, totDim, maxC = 0; in DMSwarmComputeMassMatrixSquare_Private() local [all …]
|
| H A D | swarmpic_da.c | 100 PetscInt pcnt, Nfc; in private_DMSwarmInsertPointsUsingCellDM_DA_Q1() local 161 PetscCall(DMSwarmCellDMGetCoordinateFields(celldm, &Nfc, &coordFields)); in private_DMSwarmInsertPointsUsingCellDM_DA_Q1() 162 …scCheck(Nfc == 1, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP, "We only support a single coord… in private_DMSwarmInsertPointsUsingCellDM_DA_Q1()
|
| H A D | swarmpic_view.c | 92 PetscInt k, ng, dim, Nfc; in private_DMSwarmView_XDMF() local 180 PetscCall(DMSwarmCellDMGetCoordinateFields(celldm, &Nfc, &coordFields)); in private_DMSwarmView_XDMF() 181 …scCheck(Nfc == 1, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP, "We only support a single coord… in private_DMSwarmView_XDMF()
|
| H A D | swarm_migrate.c | 188 … p, npoints, npointsg = 0, npoints2, npoints2g, *rankval, *p_cellid, npoints_prior_migration, Nfc; in DMSwarmMigrate_CellDMScatter() local 229 PetscCall(DMSwarmCellDMGetCoordinateFields(celldm, &Nfc, &coordFields)); in DMSwarmMigrate_CellDMScatter() 230 PetscCall(DMSwarmCreateLocalVectorFromFields(dm, Nfc, coordFields, &pos)); in DMSwarmMigrate_CellDMScatter() 232 PetscCall(DMSwarmDestroyLocalVectorFromFields(dm, Nfc, coordFields, &pos)); in DMSwarmMigrate_CellDMScatter() 284 PetscCall(DMSwarmCreateLocalVectorFromFields(dm, Nfc, coordFields, &pos)); in DMSwarmMigrate_CellDMScatter() 313 PetscCall(DMSwarmDestroyLocalVectorFromFields(dm, Nfc, coordFields, &pos)); in DMSwarmMigrate_CellDMScatter()
|
| /petsc/src/dm/impls/da/tests/ |
| H A D | ex1.c | 11 PetscInt Np, bs, Nfc; in DMSwarmPrint() local 20 PetscCall(DMSwarmCellDMGetCoordinateFields(celldm, &Nfc, &coordFields)); in DMSwarmPrint() 21 …scCheck(Nfc == 1, PetscObjectComm((PetscObject)sw), PETSC_ERR_SUP, "We only support a single coord… in DMSwarmPrint()
|
| /petsc/src/dm/impls/swarm/tests/ |
| H A D | ex1.c | 55 PetscInt *swarm_cellid, Np, dim, Nfc; in CreateSwarm() local 76 PetscCall(DMSwarmCellDMGetCoordinateFields(celldm, &Nfc, &coordFields)); in CreateSwarm() 77 …scCheck(Nfc == 1, PetscObjectComm((PetscObject)sw), PETSC_ERR_SUP, "We only support a single coord… in CreateSwarm()
|
| H A D | ex2.c | 180 PetscInt Ncell, Np = user->particlesPerCell, p, cStart, c, dim, d, Nfc; in CreateParticles() local 209 PetscCall(DMSwarmCellDMGetCoordinateFields(celldm, &Nfc, &coordFields)); in CreateParticles() 210 …scCheck(Nfc == 1, PetscObjectComm((PetscObject)sw), PETSC_ERR_SUP, "We only support a single coord… in CreateParticles() 274 PetscInt cStart, cEnd, c, Nq, q, dim, Nfc; in CreateParticles_Shape() local 291 PetscCall(DMSwarmCellDMGetCoordinateFields(celldm, &Nfc, &coordFields)); in CreateParticles_Shape() 292 …scCheck(Nfc == 1, PetscObjectComm((PetscObject)sw), PETSC_ERR_SUP, "We only support a single coord… in CreateParticles_Shape()
|
| /petsc/include/petsc/private/ |
| H A D | dmswarmimpl.h | 36 PetscInt Nfc; // The number of DM coordinate fields member
|
| /petsc/src/ksp/ksp/utils/dm/ |
| H A D | dmproject.c | 526 PetscInt k, p, e, npoints, nel, npe, Nfc; in DMSwarmProjectField_ApproxQ1_DA_2D() local 552 PetscCall(DMSwarmCellDMGetCoordinateFields(celldm, &Nfc, &coordFields)); in DMSwarmProjectField_ApproxQ1_DA_2D() 553 …Check(Nfc == 1, PetscObjectComm((PetscObject)swarm), PETSC_ERR_SUP, "We only support a single coor… in DMSwarmProjectField_ApproxQ1_DA_2D() 1016 PetscInt dim, xcdim, vcdim, xcStart, xcEnd, vcStart, vcEnd, Np, Nfc; in DMSwarmRemap_Colella_Internal() local 1063 PetscCall(DMSwarmCellDMGetCoordinateFields(celldm, &Nfc, &coordFields)); in DMSwarmRemap_Colella_Internal() 1064 …scCheck(Nfc == 1, PetscObjectComm((PetscObject)sw), PETSC_ERR_SUP, "We only support a single coord… in DMSwarmRemap_Colella_Internal()
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex70.c | 526 PetscInt dim, nel, npe, q, k, d, ncurr, Nfc; in DMSwarmPICInsertPointsCellwise() local 593 PetscCall(DMSwarmCellDMGetCoordinateFields(celldm, &Nfc, &coordFields)); in DMSwarmPICInsertPointsCellwise() 594 …scCheck(Nfc == 1, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP, "We only support a single coord… in DMSwarmPICInsertPointsCellwise() 706 PetscInt i, p, e, npoints, nel, npe, Nfc; in MaterialPoint_AdvectRK1() local 729 PetscCall(DMSwarmCellDMGetCoordinateFields(celldm, &Nfc, &coordFields)); in MaterialPoint_AdvectRK1() 730 …eck(Nfc == 1, PetscObjectComm((PetscObject)dm_mpoint), PETSC_ERR_SUP, "We only support a single co… in MaterialPoint_AdvectRK1()
|