Lines Matching refs:oldFields
272 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()
402 for (PetscInt f = 0; f < Nf; ++f) PetscCall(PetscFree(oldFields[f])); in ComputeFieldAtParticles_Mixed()
403 PetscCall(PetscFree(oldFields)); in ComputeFieldAtParticles_Mixed()