Skip to content

Consistent Naming of origProcId in Parcels

Consisten Name for Fields in particleTemplates.C

The particle class has a origId and origProc field. If the particle information is written with void Foam::particle::writeFields() the field name origProcId is chosen. However, internally, the field is stored with Foam::particle::writeObjects() with the name origProc. It would be better if the name for that field is consistent for writeFields and writeObjects. Otherwise this can lead to confusion if a user wants to write out these fields with, e.g., the dataCloud utility. Here, only the name origProc not origProcId would work, even though the fieldName when written is origProcId.

Solution

Change the name of origProc_ to origProcId and update the name in writeObjects to be consistent with writeFields.