Lines Matching refs:npoints

60     PetscInt  npoints[2], npoints_orig[2];  in ex1_1()  local
72 PetscCall(DMSwarmGetLocalSize(dms, &npoints[0])); in ex1_1()
73 PetscCall(DMSwarmGetSize(dms, &npoints[1])); in ex1_1()
75 …cInt_FMT ",%" PetscInt_FMT ")\n", rank, npoints_orig[0], npoints_orig[1], npoints[0], npoints[1])); in ex1_1()
128 PetscInt npoints[2], npoints_orig[2]; in ex1_2() local
147 PetscCall(DMSwarmGetLocalSize(dms, &npoints[0])); in ex1_2()
148 PetscCall(DMSwarmGetSize(dms, &npoints[1])); in ex1_2()
150 …OUT_WORLD, "rank[%d] after(%" PetscInt_FMT ",%" PetscInt_FMT ")\n", rank, npoints[0], npoints[1])); in ex1_2()
159 PetscCall(DMSwarmGetLocalSize(dms, &npoints[0])); in ex1_2()
160 PetscCall(DMSwarmGetSize(dms, &npoints[1])); in ex1_2()
162 …T_WORLD, "rank[%d] after_v(%" PetscInt_FMT ",%" PetscInt_FMT ")\n", rank, npoints[0], npoints[1])); in ex1_2()
210 PetscInt npoints, i, j, cnt; in ex1_3() local
218 PetscCall(DMSwarmGetLocalSize(dms, &npoints)); in ex1_3()
252 PetscInt npoints[2], npoints_orig[2], ng; in ex1_3() local
262 PetscCall(DMSwarmGetLocalSize(dms, &npoints[0])); in ex1_3()
263 PetscCall(DMSwarmGetSize(dms, &npoints[1])); in ex1_3()
265 …OUT_WORLD, "rank[%d] after(%" PetscInt_FMT ",%" PetscInt_FMT ")\n", rank, npoints[0], npoints[1])); in ex1_3()
271 PetscInt npoints, p; in ex1_3() local
278 PetscCall(DMSwarmGetLocalSize(dms, &npoints)); in ex1_3()
281 …for (p = 0; p < npoints; p++) fprintf(fp, "%+1.4e %+1.4e %1.4e\n", array_x[p], array_y[p], (double… in ex1_3()
299 PetscInt p, npoints; in collect_zone() local
306 PetscCall(DMSwarmGetLocalSize(dm, &npoints)); in collect_zone()
312 for (p = 0; p < npoints; p++) { in collect_zone()
322 for (p = 0; p < npoints; p++) { in collect_zone()
376 PetscInt npoints, i, j, cnt; in ex1_4() local
384 PetscCall(DMSwarmGetLocalSize(dms, &npoints)); in ex1_4()
443 PetscInt npoints[2], npoints_orig[2], ng; in ex1_4() local
452 PetscCall(DMSwarmGetLocalSize(dms, &npoints[0])); in ex1_4()
453 PetscCall(DMSwarmGetSize(dms, &npoints[1])); in ex1_4()
455 …OUT_WORLD, "rank[%d] after(%" PetscInt_FMT ",%" PetscInt_FMT ")\n", rank, npoints[0], npoints[1])); in ex1_4()
461 PetscInt npoints, p; in ex1_4() local
468 PetscCall(DMSwarmGetLocalSize(dms, &npoints)); in ex1_4()
471 …for (p = 0; p < npoints; p++) fprintf(fp, "%+1.4e %+1.4e %1.4e\n", array_x[p], array_y[p], (double… in ex1_4()