createPatch does not use supplied value

Summary

createPatch does not use supplied patch field information.

Steps to reproduce

createPatch with

            //- Optional override of added patchfields. If not specified
            //  any added patchfields are of type calculated.
            patchFields
            {
                p
                {
                    type            fixedValue;
                    value           uniform 300;
                }
            }

creates a fixedValue bc for p but does not set the value (at least it writes 0 as value)

Environment information

  • OpenFOAM version :2506