| /petsc/src/dm/tutorials/ |
| H A D | swarm_ex1.c | 39 PetscCall(DMSwarmGetField(dms, "viscosity", NULL, NULL, (void **)&array)); in ex1_1() 46 PetscCall(DMSwarmGetField(dms, "strain", NULL, NULL, (void **)&array)); in ex1_1() 64 PetscCall(DMSwarmGetField(dms, DMSwarmField_rank, NULL, NULL, (void **)&rankval)); in ex1_1() 116 PetscCall(DMSwarmGetField(dms, "viscosity", NULL, NULL, (void **)&array)); in ex1_2() 122 PetscCall(DMSwarmGetField(dms, "strain", NULL, NULL, (void **)&array)); in ex1_2() 137 PetscCall(DMSwarmGetField(dms, "DMSwarm_rank", NULL, NULL, (void **)&rankval)); in ex1_2() 219 PetscCall(DMSwarmGetField(dms, "coorx", NULL, NULL, (void **)&array_x)); in ex1_3() 220 PetscCall(DMSwarmGetField(dms, "coory", NULL, NULL, (void **)&array_y)); in ex1_3() 279 PetscCall(DMSwarmGetField(dms, "coorx", NULL, NULL, (void **)&array_x)); in ex1_3() 280 PetscCall(DMSwarmGetField(dms, "coory", NULL, NULL, (void **)&array_y)); in ex1_3() [all …]
|
| H A D | swarm_ex3.c | 114 PetscCall(DMSwarmGetField(dms, DMSwarmPICField_coor, &bs, NULL, (void **)&array)); in SwarmViewGP() 115 PetscCall(DMSwarmGetField(dms, "itag", NULL, NULL, (void **)&iarray)); in SwarmViewGP() 179 PetscCall(DMSwarmGetField(dms, DMSwarmPICField_coor, &bs, NULL, (void **)&array)); in ex3_1() 205 PetscCall(DMSwarmGetField(dms, "itag", &bs, NULL, (void **)&iarray)); in ex3_1() 219 PetscCall(DMSwarmGetField(dms, DMSwarmPICField_coor, &bs, NULL, (void **)&array)); in ex3_1()
|
| H A D | swarm_ex2.c | 33 PetscCall(DMSwarmGetField(dms, "viscosity", &bs, NULL, (void **)&array)); in ex2_1() 40 PetscCall(DMSwarmGetField(dms, "strain", &bs, NULL, (void **)&array)); in ex2_1()
|
| H A D | ex21.c | 116 PetscCall(DMSwarmGetField(swarm, DMSwarmPICField_coor, NULL, NULL, (void **)&s_coor)); in pic_advect() 117 PetscCall(DMSwarmGetField(swarm, "phi", NULL, NULL, (void **)&s_phi)); in pic_advect() 118 PetscCall(DMSwarmGetField(swarm, "region", NULL, NULL, (void **)&s_region)); in pic_advect() 167 PetscCall(DMSwarmGetField(swarm, DMSwarmPICField_coor, NULL, NULL, (void **)&s_coor)); in pic_advect()
|
| /petsc/src/dm/impls/da/tests/ |
| H A D | ex1.c | 22 PetscCall(DMSwarmGetField(sw, coordFields[0], &bs, NULL, (void **)&array)); in DMSwarmPrint() 23 PetscCall(DMSwarmGetField(sw, DMSwarmField_pid, &bs, NULL, (void **)&pidArray)); in DMSwarmPrint() 24 PetscCall(DMSwarmGetField(sw, cellid, &bs, NULL, (void **)&cidArray)); in DMSwarmPrint() 65 PetscCall(DMSwarmGetField(sw, "DMSwarmPIC_coor", &bs, &dtype, (void **)&coords)); in main()
|
| /petsc/src/dm/impls/swarm/tutorials/ |
| H A D | ex1.c | 59 PetscCall(DMSwarmGetField(sw, "w_q", &bs, &dtype, (void **)&wq)); in main() 60 PetscCall(DMSwarmGetField(sw, "DMSwarmPIC_coor", &bs, &dtype, (void **)&coords)); in main() 80 PetscCall(DMSwarmGetField(sw, "w_q", &bs, &dtype, (void **)&wq)); in main() 81 PetscCall(DMSwarmGetField(sw, "DMSwarmPIC_coor", &bs, &dtype, (void **)&coords)); in main()
|
| H A D | ex1f90.F90 | 48 PetscCallA(DMSwarmGetField(sw, 'w_q', bs, dtype, wq, ierr)) 49 PetscCallA(DMSwarmGetField(sw, 'DMSwarmPIC_coor', bs, dtype, coords, ierr))
|
| /petsc/src/dm/ftn-mod/ |
| H A D | petscdmswarm.h90 | 2 subroutine DMSwarmGetField(dm, fieldname, blocksize, dtype, data, ierr) 28 !DEC$ ATTRIBUTES DLLEXPORT::DMSwarmGetField
|
| /petsc/src/dm/impls/swarm/ |
| H A D | swarm_migrate.c | 27 PetscCall(DMSwarmGetField(dm, DMSwarmField_rank, NULL, NULL, (void **)&rankval)); in DMSwarmMigrate_Push_Basic() 116 PetscCall(DMSwarmGetField(dm, cellid, NULL, NULL, (void **)&p_cellid)); in DMSwarmMigrate_DMNeighborScatter() 215 PetscCall(DMSwarmGetField(dm, cellid, NULL, NULL, (void **)&p_cellid)); in DMSwarmMigrate_CellDMScatter() 236 PetscCall(DMSwarmGetField(dm, cellid, NULL, NULL, (void **)&p_cellid)); in DMSwarmMigrate_CellDMScatter() 237 PetscCall(DMSwarmGetField(dm, DMSwarmField_rank, NULL, NULL, (void **)&rankval)); in DMSwarmMigrate_CellDMScatter() 316 PetscCall(DMSwarmGetField(dm, DMSwarmField_rank, NULL, NULL, (void **)&rankval)); in DMSwarmMigrate_CellDMScatter() 317 PetscCall(DMSwarmGetField(dm, cellid, NULL, NULL, (void **)&p_cellid)); in DMSwarmMigrate_CellDMScatter() 376 PetscCall(DMSwarmGetField(dm, DMSwarmField_rank, NULL, NULL, (void **)&rankval)); in DMSwarmMigrate_GlobalToLocal_Basic() 480 PetscCall(DMSwarmGetField(dm, DMSwarmField_rank, NULL, NULL, (void **)&rankval)); in DMSwarmCollect_DMDABoundingBox() 526 PetscCall(DMSwarmGetField(dm, "coorx", NULL, NULL, (void **)&array_x)); in DMSwarmCollect_DMDABoundingBox() [all …]
|
| H A D | swarmpic_plex.c | 130 PetscCall(DMSwarmGetField(dm, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide() 131 PetscCall(DMSwarmGetField(dm, cellid, NULL, NULL, (void **)&swarm_cellid)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide() 220 PetscCall(DMSwarmGetField(dm, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular() 221 PetscCall(DMSwarmGetField(dm, cellid, NULL, NULL, (void **)&swarm_cellid)); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular() 335 PetscCall(DMSwarmGetField(dm, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in private_DMSwarmSetPointCoordinatesCellwise_PLEX() 336 PetscCall(DMSwarmGetField(dm, cellid, NULL, NULL, (void **)&swarm_cellid)); in private_DMSwarmSetPointCoordinatesCellwise_PLEX()
|
| H A D | swarmpic.c | 458 PetscCall(DMSwarmGetField(sw, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in DMSwarmSetPointsUniformCoordinates() 459 PetscCall(DMSwarmGetField(sw, cellid, NULL, NULL, (void **)&swarm_cellid)); in DMSwarmSetPointsUniformCoordinates() 619 PetscCall(DMSwarmGetField(sw, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in DMSwarmSetPointCoordinates() 620 PetscCall(DMSwarmGetField(sw, cellid, NULL, NULL, (void **)&swarm_cellid)); in DMSwarmSetPointCoordinates() 808 PetscCall(DMSwarmGetField(sw, cellid, NULL, NULL, (void **)&swarm_cellid)); in DMSwarmCreatePointPerCellCount() 1036 PetscCall(DMSwarmGetField(sw, cellid, NULL, NULL, (void **)&swarm_cellid)); in DMSwarmComputeLocalSize() 1137 PetscCall(DMSwarmGetField(sw, coordFields[0], &bs, &dtype, (void **)&x)); in DMSwarmInitializeCoordinates() 1138 PetscCall(DMSwarmGetField(sw, "w_q", &bs, &dtype, (void **)&weight)); in DMSwarmInitializeCoordinates() 1139 PetscCall(DMSwarmGetField(sw, "species", NULL, NULL, (void **)&species)); in DMSwarmInitializeCoordinates() 1226 PetscCall(DMSwarmGetField(sw, "velocity", NULL, NULL, (void **)&v)); in DMSwarmInitializeVelocities() [all …]
|
| H A D | swarmpic_view.c | 353 PetscCall(DMSwarmGetField(dm, field_name_list[f], NULL, &type, &data)); in DMSwarmViewFieldsXDMF() 364 PetscCall(DMSwarmGetField(dm, field_name_list[f], NULL, &type, &data)); in DMSwarmViewFieldsXDMF() 424 PetscCall(DMSwarmGetField(dm, field->name, NULL, NULL, &data)); in DMSwarmViewXDMF()
|
| /petsc/src/ts/tutorials/hamiltonian/ |
| H A D | ex3.c | 187 PetscCall(DMSwarmGetField(sw, "w_q", NULL, NULL, (void **)&w)); in CheckNonNegativeWeights() 241 PetscCall(DMSwarmGetField(sw, DMSwarmPICField_coor, NULL, NULL, (void **)&x)); in MonitorEField() 242 PetscCall(DMSwarmGetField(sw, "E_field", NULL, NULL, (void **)&E)); in MonitorEField() 243 PetscCall(DMSwarmGetField(sw, "species", NULL, NULL, (void **)&species)); in MonitorEField() 244 PetscCall(DMSwarmGetField(sw, "w_q", NULL, NULL, (void **)&weight)); in MonitorEField() 323 PetscCall(DMSwarmGetField(sw, DMSwarmPICField_coor, NULL, NULL, (void **)&x)); in MonitorParticles() 324 PetscCall(DMSwarmGetField(sw, "velocity", NULL, NULL, (void **)&v)); in MonitorParticles() 325 PetscCall(DMSwarmGetField(sw, "w_q", NULL, NULL, (void **)&w)); in MonitorParticles() 326 PetscCall(DMSwarmGetField(sw, "E_field", NULL, NULL, (void **)&E)); in MonitorParticles() 500 PetscCall(DMSwarmGetField(sw, "species", NULL, NULL, (void **)&species)); in InitializeParticles_Centroid() [all …]
|
| H A D | ex2.c | 424 PetscCall(DMSwarmGetField(sw, "w_q", NULL, NULL, (void **)&w)); in CheckNonNegativeWeights() 472 PetscCall(DMSwarmGetField(sw, "velocity", NULL, NULL, (void **)&v)); in computeVelocityFEMMoments() 531 PetscCall(DMSwarmGetField(sw, DMSwarmPICField_coor, NULL, NULL, (void **)&x)); in MonitorEField() 532 PetscCall(DMSwarmGetField(sw, "E_field", NULL, NULL, (void **)&E)); in MonitorEField() 533 PetscCall(DMSwarmGetField(sw, "species", NULL, NULL, (void **)&species)); in MonitorEField() 534 PetscCall(DMSwarmGetField(sw, "w_q", NULL, NULL, (void **)&weight)); in MonitorEField() 616 PetscCall(DMSwarmGetField(sw, DMSwarmPICField_coor, NULL, NULL, (void **)&pos)); in MonitorInitialConditions() 617 PetscCall(DMSwarmGetField(sw, "velocity", NULL, NULL, (void **)&vel)); in MonitorInitialConditions() 618 PetscCall(DMSwarmGetField(sw, "w_q", NULL, NULL, (void **)&weight)); in MonitorInitialConditions() 678 PetscCall(DMSwarmGetField(sw, "velocity", NULL, NULL, (void **)&vel)); in MonitorVelocity() [all …]
|
| H A D | ex4.c | 586 PetscCall(DMSwarmGetField(sw, "w_q", NULL, NULL, (void **)&w)); in CheckNonNegativeWeights() 767 PetscCall(DMSwarmGetField(sw, DMSwarmPICField_coor, NULL, NULL, (void **)&x)); in MonitorEField() 768 PetscCall(DMSwarmGetField(sw, "E_field", NULL, NULL, (void **)&E)); in MonitorEField() 769 PetscCall(DMSwarmGetField(sw, "species", NULL, NULL, (void **)&species)); in MonitorEField() 770 PetscCall(DMSwarmGetField(sw, "w_q", NULL, NULL, (void **)&weight)); in MonitorEField() 1132 PetscCall(DMSwarmGetField(sw, DMSwarmPICField_coor, NULL, NULL, (void **)&pos)); in MonitorInitialConditions() 1133 PetscCall(DMSwarmGetField(sw, "velocity", NULL, NULL, (void **)&vel)); in MonitorInitialConditions() 1134 PetscCall(DMSwarmGetField(sw, "w_q", NULL, NULL, (void **)&weight)); in MonitorInitialConditions() 1194 PetscCall(DMSwarmGetField(sw, "velocity", NULL, NULL, (void **)&vel)); in MonitorVelocity() 1195 PetscCall(DMSwarmGetField(sw, "w_q", NULL, NULL, (void **)&weight)); in MonitorVelocity() [all …]
|
| /petsc/src/dm/impls/swarm/tests/ |
| H A D | ex6.c | 244 PetscCall(DMSwarmGetField(sw, DMSwarmPICField_coor, NULL, NULL, (void **)&coords)); in ComputeFieldAtParticles_Coulomb() 332 PetscCall(DMSwarmGetField(sw, DMSwarmPICField_coor, NULL, NULL, (void **)&coords)); in ComputeFieldAtParticles_Primal() 449 PetscCall(DMSwarmGetField(sw, DMSwarmPICField_coor, NULL, NULL, (void **)&coords)); in ComputeFieldAtParticles_Mixed() 533 PetscCall(DMSwarmGetField(sw, "initCoordinates", NULL, NULL, (void **)&coords)); in RHSFunction() 534 PetscCall(DMSwarmGetField(sw, "initVelocity", NULL, NULL, (void **)&vel)); in RHSFunction() 535 PetscCall(DMSwarmGetField(sw, "E_field", NULL, NULL, (void **)&E)); in RHSFunction() 578 PetscCall(DMSwarmGetField(sw, "initCoordinates", NULL, NULL, (void **)&coords)); in RHSJacobian() 579 PetscCall(DMSwarmGetField(sw, "initVelocity", NULL, NULL, (void **)&vel)); in RHSJacobian() 634 PetscCall(DMSwarmGetField(sw, "initCoordinates", NULL, NULL, (void **)&coords)); in RHSFunctionV() 635 PetscCall(DMSwarmGetField(sw, "initVelocity", NULL, NULL, (void **)&vel)); in RHSFunctionV() [all …]
|
| H A D | ex5.c | 104 PetscCall(DMSwarmGetField(sw, "initCoordinates", NULL, NULL, (void **)&coords)); in RHSFunction() 105 PetscCall(DMSwarmGetField(sw, "initVelocity", NULL, NULL, (void **)&vel)); in RHSFunction() 142 PetscCall(DMSwarmGetField(sw, "initCoordinates", NULL, NULL, (void **)&coords)); in RHSJacobian() 143 PetscCall(DMSwarmGetField(sw, "initVelocity", NULL, NULL, (void **)&vel)); in RHSJacobian() 195 PetscCall(DMSwarmGetField(sw, "initCoordinates", NULL, NULL, (void **)&coords)); in RHSFunctionV() 196 PetscCall(DMSwarmGetField(sw, "initVelocity", NULL, NULL, (void **)&vel)); in RHSFunctionV() 442 PetscCall(DMSwarmGetField(sw, "initCoordinates", NULL, NULL, (void **)&coords)); in ComputeError() 443 PetscCall(DMSwarmGetField(sw, "initVelocity", NULL, NULL, (void **)&vel)); in ComputeError()
|
| H A D | ex1.c | 78 PetscCall(DMSwarmGetField(*sw, coordFields[0], NULL, NULL, (void **)&coords)); in CreateSwarm() 79 PetscCall(DMSwarmGetField(*sw, cellid, NULL, NULL, (void **)&swarm_cellid)); in CreateSwarm() 181 PetscCall(DMSwarmGetField(sw, DMSwarmPICField_coor, NULL, NULL, (void **)&coords)); in CheckPointInsertion_Boundary()
|
| H A D | ex7.c | 146 PetscCall(DMSwarmGetField(sw, "w_q", &bs, &dtype, (void **)&wq)); in gridToParticles() 147 PetscCall(DMSwarmGetField(sw, "DMSwarmPIC_coor", &bs, &dtype, (void **)&coords)); in gridToParticles() 172 PetscCall(DMSwarmGetField(sw, "w_q", &bs, &dtype, (void **)&wq)); in particlesToGrid() 173 PetscCall(DMSwarmGetField(sw, "DMSwarmPIC_coor", &bs, &dtype, (void **)&coords)); in particlesToGrid()
|
| H A D | ex2.c | 212 PetscCall(DMSwarmGetField(*sw, coordFields[0], NULL, NULL, (void **)&coords)); in CreateParticles() 213 PetscCall(DMSwarmGetField(*sw, cellid, NULL, NULL, (void **)&swarm_cellid)); in CreateParticles() 214 PetscCall(DMSwarmGetField(*sw, "w_q", NULL, NULL, (void **)&vals)); in CreateParticles() 299 PetscCall(DMSwarmGetField(*sw, coordFields[0], NULL, NULL, (void **)&coords)); in CreateParticles_Shape() 300 PetscCall(DMSwarmGetField(*sw, cellid, NULL, NULL, (void **)&swarm_cellid)); in CreateParticles_Shape() 301 PetscCall(DMSwarmGetField(*sw, "w_q", NULL, NULL, (void **)&vals)); in CreateParticles_Shape() 335 PetscCall(DMSwarmGetField(sw, DMSwarmPICField_coor, NULL, NULL, (void **)&coords)); in computeParticleMoments() 336 PetscCall(DMSwarmGetField(sw, "w_q", NULL, NULL, (void **)&w)); in computeParticleMoments()
|
| /petsc/src/ts/tests/ |
| H A D | ex27.c | 88 PetscCall(DMSwarmGetField(sw, DMSwarmPICField_coor, NULL, NULL, (void **)&coords)); in SetInitialCoordinates() 89 PetscCall(DMSwarmGetField(sw, "velocity", NULL, NULL, (void **)&velocity)); in SetInitialCoordinates() 90 PetscCall(DMSwarmGetField(sw, "w_q", NULL, NULL, (void **)&vals)); in SetInitialCoordinates() 149 PetscCall(DMSwarmGetField(dmSw, "velocity", NULL, NULL, (void **)&velocity)); in SetInitialConditions() 191 PetscCall(DMSwarmGetField(*sw, cellid, NULL, NULL, (void **)&swarm_cellid)); in CreateParticles() 399 PetscCall(DMSwarmGetField(sw, "velocity", NULL, NULL, (void **)&velocity)); in UpdateSwarm()
|
| H A D | ex28.c | 82 PetscCall(DMSwarmGetField(sw, DMSwarmPICField_coor, NULL, NULL, (void **)&coords)); in SetInitialCoordinates() 83 PetscCall(DMSwarmGetField(sw, "w_q", NULL, NULL, (void **)&vals)); in SetInitialCoordinates() 136 PetscCall(DMSwarmGetField(dmSw, "w_q", NULL, NULL, (void **)&vals)); in SetInitialConditions() 171 PetscCall(DMSwarmGetField(*sw, cellid, NULL, NULL, (void **)&swarm_cellid)); in CreateParticles() 296 PetscCall(DMSwarmGetField(dmSw, DMSwarmPICField_coor, NULL, NULL, (void **)&coords)); in RHSFunctionParticles() 404 PetscCall(DMSwarmGetField(dmSw, DMSwarmPICField_coor, NULL, NULL, (void **)&coords)); in SPMonitor() 439 PetscCall(DMSwarmGetField(sw, DMSwarmPICField_coor, NULL, NULL, (void **)&coords)); in KSConv()
|
| H A D | ex30.c | 94 PetscCall(DMSwarmGetField(sw, "DMSwarmPIC_coor", &bs, &dtype, (void **)&coords)); in makeSwarm() 144 PetscCall(DMSwarmGetField(sw, "w_q", &bs, &dtype, (void **)&wq)); in particlesToGrid() 309 PetscCall(DMSwarmGetField(sw, "w_q", &bs, &dtype, (void **)&wp)); // take data out here in gridToParticles_private() 310 PetscCall(DMSwarmGetField(sw, "DMSwarmPIC_coor", &bs, &dtype, (void **)&coords)); in gridToParticles_private() 329 PetscCall(DMSwarmGetField(sw, "w_q", &bs, &dtype, (void **)&wp)); // take data out here in gridToParticles_private() 330 PetscCall(DMSwarmGetField(sw, "DMSwarmPIC_coor", &bs, &dtype, (void **)&coords)); in gridToParticles_private() 404 PetscCall(DMSwarmGetField(sw, "DMSwarmPIC_coor", &bs, &dtype, (void **)&coords)); in PostStep() 406 PetscCall(DMSwarmGetField(sw, "w_q", &bs, &dtype, (void **)&wp)); in PostStep() 425 PetscCall(DMSwarmGetField(sw, "DMSwarmPIC_coor", &bs, &dtype, (void **)&coords)); in PostStep() 427 PetscCall(DMSwarmGetField(sw, "w_q", &bs, &dtype, (void **)&wp)); in PostStep() [all …]
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex70.c | 359 PetscCall(DMSwarmGetField(quadrature, "eta_q", NULL, NULL, (void **)&q_eta)); in AssembleStokes_A() 422 PetscCall(DMSwarmGetField(quadrature, "eta_q", NULL, NULL, (void **)&q_eta)); in AssembleStokes_PC() 484 PetscCall(DMSwarmGetField(quadrature, "rho_q", NULL, NULL, (void **)&q_rhs)); in AssembleStokes_RHS() 605 PetscCall(DMSwarmGetField(dm, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in DMSwarmPICInsertPointsCellwise() 606 PetscCall(DMSwarmGetField(dm, cellid, NULL, NULL, (void **)&swarm_cellid)); in DMSwarmPICInsertPointsCellwise() 629 PetscCall(DMSwarmGetField(dm, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in DMSwarmPICInsertPointsCellwise() 630 PetscCall(DMSwarmGetField(dm, cellid, NULL, NULL, (void **)&swarm_cellid)); in DMSwarmPICInsertPointsCellwise() 643 PetscCall(DMSwarmGetField(dm, coordFields[0], NULL, NULL, (void **)&swarm_coor)); in DMSwarmPICInsertPointsCellwise() 644 PetscCall(DMSwarmGetField(dm, cellid, NULL, NULL, (void **)&swarm_cellid)); in DMSwarmPICInsertPointsCellwise() 731 PetscCall(DMSwarmGetField(dm_mpoint, coordFields[0], NULL, NULL, (void **)&mpfield_coor)); in MaterialPoint_AdvectRK1() [all …]
|
| /petsc/src/dm/impls/swarm/ftn-custom/ |
| H A D | zswarmf90.c | 23 *ierr = DMSwarmGetField(*dm, fieldname, blocksize, type, (void **)&v); in dmswarmgetfield_()
|