Home
last modified time | relevance | path

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

/petsc/src/dm/impls/swarm/tests/
H A Dex6.c272 const char **oldFields; in ComputeFieldAtParticles_Primal() local
282 PetscCall(PetscMalloc1(Nf, &oldFields)); in ComputeFieldAtParticles_Primal()
283 for (PetscInt f = 0; f < Nf; ++f) PetscCall(PetscStrallocpy(tmp[f], (char **)&oldFields[f])); in ComputeFieldAtParticles_Primal()
286 PetscCall(DMSwarmVectorDefineFields(sw, Nf, oldFields)); in ComputeFieldAtParticles_Primal()
287 for (PetscInt f = 0; f < Nf; ++f) PetscCall(PetscFree(oldFields[f])); in ComputeFieldAtParticles_Primal()
288 PetscCall(PetscFree(oldFields)); in ComputeFieldAtParticles_Primal()
382 const char **oldFields; in ComputeFieldAtParticles_Mixed() local
397 PetscCall(PetscMalloc1(Nf, &oldFields)); in ComputeFieldAtParticles_Mixed()
398 for (PetscInt f = 0; f < Nf; ++f) PetscCall(PetscStrallocpy(tmp[f], (char **)&oldFields[f])); in ComputeFieldAtParticles_Mixed()
401 PetscCall(DMSwarmVectorDefineFields(sw, Nf, oldFields)); in ComputeFieldAtParticles_Mixed()
[all …]