Handling of custom fields by decomposePar
This is really an aesthetic problem but I thought I would ask to see if anyone knows how to fix it.
So, I have modified the pointMesh class slightly to take some additional input. This is only needed when used together with a special solver so I would like to keep the original pointMesh as it is. This means I have renamed the new one my_pointMesh to avoid conflict with the existing class (since libOpenFOAM is loaded in most solvers and libraries.) For the same reason, I have to rename all point fields that use my_pointMesh in their creation so pointScalarField becomes my_pointScalarField etc. This works fine.
Now to the problem. In decomposePar, the fields that are to be decomposed seem to be hard coded in the executable. This means that it will not decompose for example any my_pointScalarFields, only pointScalarFields. I can of course just add the fields I want there and recompile it but since I wanted to distribute this code to my colleagues, it seems cumbersome to make everyone using it compile their own decomposePar.
Any ideas would be great.
Never mind. I managed to do the whole thing in another way so I could keep the standard fields.
|All times are GMT -4. The time now is 14:54.|