Searched refs:fbs (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/dm/impls/plex/ |
| H A D | plexvtu.c | 290 PetscInt fbs, j; in DMPlexVTKWriteAll_VTU() local 297 PetscCall(PetscSectionGetFieldDof(section, cStart, field, &fbs)); in DMPlexVTKWriteAll_VTU() 299 } else fbs = bs; /* Say we have one field with 'bs' components */ in DMPlexVTKWriteAll_VTU() 308 …ck(fbs <= 3, PetscObjectComm((PetscObject)viewer), PETSC_ERR_ARG_SIZ, "Cell vector fields can have… in DMPlexVTKWriteAll_VTU() 309 for (j = 0; j < fbs; j++) { in DMPlexVTKWriteAll_VTU() 316 if (j < fbs) vector = PETSC_FALSE; in DMPlexVTKWriteAll_VTU() 328 i += fbs; in DMPlexVTKWriteAll_VTU() 330 for (j = 0; j < fbs; j++) { in DMPlexVTKWriteAll_VTU() 336 } else if (fbs > 1) { in DMPlexVTKWriteAll_VTU() 384 PetscInt fbs, j; in DMPlexVTKWriteAll_VTU() local [all …]
|
| /petsc/src/dm/impls/swarm/ |
| H A D | swarm.c | 234 PetscInt fbs; in DMCreateGlobalVector_Swarm() local 237 PetscCall(DMSwarmGetFieldInfo(sw, celldm->dmFields[f], &fbs, NULL)); in DMCreateGlobalVector_Swarm() 238 bs += fbs; in DMCreateGlobalVector_Swarm() 268 PetscInt fbs; in DMCreateLocalVector_Swarm() local 271 PetscCall(DMSwarmGetFieldInfo(sw, celldm->dmFields[f], &fbs, NULL)); in DMCreateLocalVector_Swarm() 272 bs += fbs; in DMCreateLocalVector_Swarm() 373 PetscInt fbs; in DMSwarmDestroyVectorFromFields_Private() local 375 PetscCall(DMSwarmGetField(sw, fieldnames[f], &fbs, &ftype, (void **)&farray)); in DMSwarmDestroyVectorFromFields_Private() 376 …PetscCheck(off + fbs <= bs, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Invalid blocksize %" PetscInt_FMT " … in DMSwarmDestroyVectorFromFields_Private() 378 for (PetscInt b = 0; b < fbs; ++b) farray[i * fbs + b] = array[i * bs + off + b]; in DMSwarmDestroyVectorFromFields_Private() [all …]
|
| H A D | swarmpic.c | 266 PetscInt fbs; in DMSwarmCellDMGetBlockSize() local 268 PetscCall(DMSwarmGetFieldInfo(sw, celldm->dmFields[f], &fbs, NULL)); in DMSwarmCellDMGetBlockSize() 269 *bs += fbs; in DMSwarmCellDMGetBlockSize()
|